diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..47c3de6 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021 Mateusz Żółtak + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..bd65cfa --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +# rdfHelpers + +A set of helper classes for implementing the [rdfInterface](https://github.com/zozlak/rdfInterface). + +## Installation + +* Obtain the [Composer](https://getcomposer.org) +* Run `composer require zozlak/rdf-helpers` + +## Usage + + diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..7bb8711 --- /dev/null +++ b/composer.json @@ -0,0 +1,36 @@ +{ + "name": "zozlak/rdf-helpers", + "type": "library", + "description": "Yet another RDF library", + "keywords": [], + "homepage": "https://github.com/zozlak/rdfHelpers", + "license": "MIT", + "authors": [ + { + "name": "Mateusz Żółtak", + "email": "zozlak@zozlak.org", + "role": "Developer" + } + ], + "require": { + "php": ">=8.0", + "zozlak/rdf-constants": "^1.1", + "zozlak/rdf-interface": "*" + }, + "autoload": { + "psr-4": { + "rdfHelpers\\": "src/rdfHelpers" + } + }, + "require-dev": { + "phpunit/phpunit": "^9.5", + "phpunit/php-code-coverage": "^9.2", + "phpstan/phpstan": "*", + "squizlabs/php_codesniffer": "*" + }, + "autoload-dev": { + "psr-4": { + "rdfHelpers\\": "tests" + } + } +} diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..9cb874f --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,15 @@ + + + + + src + + + + + + + + tests + + diff --git a/GenericQuadIterator.php b/src/rdfHelpers/GenericQuadIterator.php similarity index 100% rename from GenericQuadIterator.php rename to src/rdfHelpers/GenericQuadIterator.php diff --git a/NtriplesUtil.php b/src/rdfHelpers/NtriplesUtil.php similarity index 100% rename from NtriplesUtil.php rename to src/rdfHelpers/NtriplesUtil.php diff --git a/RdfHelpersException.php b/src/rdfHelpers/RdfHelpersException.php similarity index 100% rename from RdfHelpersException.php rename to src/rdfHelpers/RdfHelpersException.php