Init package

master
Anton Smirnov 1 year ago
commit 3c599bd4c7

4
.gitattributes vendored

@ -0,0 +1,4 @@
/tests export-ignore
/.git* export-ignore
/*.yml export-ignore
/*.xml export-ignore

9
.gitignore vendored

@ -0,0 +1,9 @@
# ide
/.idea
# composer
/vendor/
/composer.lock
# phpunit
/.phpunit.result.cache

@ -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"
}
}

@ -0,0 +1,9 @@
<?xml version="1.0"?>
<!--
@see https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-Ruleset
-->
<ruleset name="Custom Standard" namespace="MyProject\CS\Standard">
<rule ref="SandFox_PHP74"/>
<file>src</file>
<file>tests</file>
</ruleset>

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8" ?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd">
<testsuites>
<testsuite name="all">
<directory>tests</directory>
</testsuite>
</testsuites>
<coverage>
<include>
<directory>src</directory>
</include>
</coverage>
</phpunit>

@ -0,0 +1,15 @@
<?xml version="1.0"?>
<psalm
errorLevel="3"
resolveFromConfigFile="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
>
<projectFiles>
<directory name="src" />
<ignoreFiles>
<directory name="vendor" />
</ignoreFiles>
</projectFiles>
</psalm>
Loading…
Cancel
Save