|
| 1 | +{ |
| 2 | + "name": "embedded-php/examples", |
| 3 | + "description": "Embedded PHP: Code Examples", |
| 4 | + "type": "project", |
| 5 | + "license": "mit", |
| 6 | + "authors": [ |
| 7 | + { |
| 8 | + "name": "Flavio Heleno", |
| 9 | + |
| 10 | + } |
| 11 | + ], |
| 12 | + "config": { |
| 13 | + "optimize-autoloader": true, |
| 14 | + "sort-packages": true, |
| 15 | + "preferred-install": "dist", |
| 16 | + "allow-plugins": { |
| 17 | + "infection/extension-installer": true, |
| 18 | + "composer/package-versions-deprecated": true |
| 19 | + } |
| 20 | + }, |
| 21 | + "minimum-stability": "dev", |
| 22 | + "prefer-stable": true, |
| 23 | + "funding": [ |
| 24 | + { |
| 25 | + "type": "patreon", |
| 26 | + "url": "https://www.patreon.com/flavioheleno" |
| 27 | + } |
| 28 | + ], |
| 29 | + "require": { |
| 30 | + "php": ">=8.0", |
| 31 | + "embedded-php/display": "dev-main", |
| 32 | + "embedded-php/sensors": "dev-main" |
| 33 | + }, |
| 34 | + "require-dev": { |
| 35 | + "infection/infection": "^0.25.0", |
| 36 | + "php-parallel-lint/php-parallel-lint": "^1.3", |
| 37 | + "phpstan/phpstan": "^0.12.90", |
| 38 | + "phpunit/phpunit": "^9.5", |
| 39 | + "psy/psysh": "^0.10.8", |
| 40 | + "roave/security-advisories": "dev-master", |
| 41 | + "squizlabs/php_codesniffer": "^3.6", |
| 42 | + "vimeo/psalm": "^4.8" |
| 43 | + }, |
| 44 | + "scripts": { |
| 45 | + "console": "vendor/bin/psysh", |
| 46 | + "infection": "vendor/bin/infection", |
| 47 | + "lint": "vendor/bin/parallel-lint --exclude vendor .", |
| 48 | + "phpcs": "vendor/bin/phpcs --standard=ruleset.xml src/ tests/", |
| 49 | + "phpstan": "vendor/bin/phpstan analyse --level=max --autoload-file=vendor/autoload.php src/", |
| 50 | + "phpunit": "vendor/bin/phpunit ./tests/ --coverage-html=./report/coverage/ --whitelist=./src/ --testdox-html=./report/testdox.html --disallow-test-output --process-isolation", |
| 51 | + "psalm": "vendor/bin/psalm --taint-analysis", |
| 52 | + "test": [ |
| 53 | + "@infection", |
| 54 | + "@lint", |
| 55 | + "@phpunit", |
| 56 | + "@phpstan", |
| 57 | + "@psalm", |
| 58 | + "@phpcs" |
| 59 | + ] |
| 60 | + }, |
| 61 | + "scripts-descriptions": { |
| 62 | + "console": "Runs PsySH Console", |
| 63 | + "infection": "Runs mutation test framework", |
| 64 | + "lint": "Runs complete codebase lint testing", |
| 65 | + "phpcs": "Runs coding style checking", |
| 66 | + "phpstan": "Runs complete codebase static analysis", |
| 67 | + "phpunit": "Runs library test suite", |
| 68 | + "psalm": "Runs complete codebase taint analysis", |
| 69 | + "test": "Runs all tests" |
| 70 | + } |
| 71 | +} |
0 commit comments