From 3c599bd4c7e27670075ee1efcbd9088228bdcdae Mon Sep 17 00:00:00 2001 From: Anton Smirnov Date: Sun, 31 Oct 2021 05:20:04 +0200 Subject: [PATCH] Init package --- .gitattributes | 4 ++++ .gitignore | 9 +++++++++ composer.json | 40 ++++++++++++++++++++++++++++++++++++++++ phpcs.xml | 9 +++++++++ phpunit.xml | 14 ++++++++++++++ psalm.xml | 15 +++++++++++++++ 6 files changed, 91 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 composer.json create mode 100644 phpcs.xml create mode 100644 phpunit.xml create mode 100644 psalm.xml diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..01e76a0 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +/tests export-ignore +/.git* export-ignore +/*.yml export-ignore +/*.xml export-ignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..93e9f91 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +# ide +/.idea + +# composer +/vendor/ +/composer.lock + +# phpunit +/.phpunit.result.cache diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..60d8b8d --- /dev/null +++ b/composer.json @@ -0,0 +1,40 @@ +{ + "name": "arokettu/path", + "description": "", + "keywords": [], + "type": "library", + "license": "MIT", + "authors": [ + { + "name": "Anton Smirnov", + "email": "sandfox@sandfox.me" + } + ], + "support": { + }, + "config": { + "sort-packages": true + }, + "autoload": { + "psr-4": { + "Arokettu\\Path\\": "src" + } + }, + "autoload-dev": { + "psr-4": { + "Arokettu\\Path\\Tests\\": "tests" + } + }, + "require": { + "php": "^7.4 | ^8.0", + "nikic/iter": "^2.0", + "symfony/polyfill-php80": "^1.17" + }, + "require-dev": { + "phpunit/phpunit": ">= 7 < 10", + "psy/psysh": "*", + "sandfox.dev/code-standard": "^10@dev", + "squizlabs/php_codesniffer": "*", + "vimeo/psalm": "^4.11" + } +} diff --git a/phpcs.xml b/phpcs.xml new file mode 100644 index 0000000..3883cf4 --- /dev/null +++ b/phpcs.xml @@ -0,0 +1,9 @@ + + + + + src + tests + diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..0171301 --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,14 @@ + + + + + tests + + + + + src + + + diff --git a/psalm.xml b/psalm.xml new file mode 100644 index 0000000..30258a7 --- /dev/null +++ b/psalm.xml @@ -0,0 +1,15 @@ + + + + + + + + +