fox91 / dev-tools
fox91 Dev Tools
Installs: 2 404
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0
- fox91/coding-standard: ^0.3.1
- php-parallel-lint/php-console-highlighter: ^0.5.0 || ^1.0.0
- php-parallel-lint/php-parallel-lint: ^1.2
- phpunit/phpunit: ^9.5
- psalm/plugin-phpunit: ^0.15.1 || ^0.16.0 || ^0.17.0 || ^0.18.0 || ^0.19.0
- rector/rector: ^1.1.1
- roave/security-advisories: dev-latest
- squizlabs/php_codesniffer: ^3.6
- vimeo/psalm: ^4.6 || ^5.0
Suggests
- brainbits/phpstan-rules: [--dev] PHPStan extension with opinionated strict rules for better code in tests
- ergebnis/phpstan-rules: [--dev] Provides additional rules for phpstan/phpstan
- korbeil/phpstan-generic-rules: [--dev] Generic rules extensions for PHPStan
- phpstan/extension-installer: [--dev] Composer plugin for automatic installation of PHPStan extensions
- phpstan/phpstan: [--dev] PHPStan - PHP Static Analysis Tool
- phpstan/phpstan-beberlei-assert: [--dev] PHPStan beberlei/assert extension
- phpstan/phpstan-deprecation-rules: [--dev] PHPStan rules for detecting usage of deprecated classes, methods, properties, constants and traits
- phpstan/phpstan-phpunit: [--dev] PHPUnit extensions and rules for PHPStan
- phpstan/phpstan-strict-rules: [--dev] Extra strict and opinionated rules for PHPStan
- thecodingmachine/phpstan-safe-rule: [--dev] A PHPStan rule to be used with the thecodingmachine/safe package
- thecodingmachine/phpstan-strict-rules: [--dev] A set of additional rules for PHPStan based on best practices followed at TheCodingMachine
- thecodingmachine/safe: All PHP functions, rewritten to throw exceptions instead of returning false
- dev-main
- v0.10.1
- v0.10.0
- v0.9.1
- v0.9.0
- v0.8.2
- v0.8.1
- v0.8.0
- v0.7.2
- v0.7.1
- v0.7.0
- v0.6.8
- v0.6.7
- v0.6.6
- v0.6.5
- v0.6.4
- v0.6.3
- v0.6.2
- v0.6.1
- v0.6.0
- v0.5.0
- v0.4.3
- v0.4.2
- v0.4.1
- v0.4.0
- v0.3.5
- v0.3.4
- v0.3.3
- v0.3.2
- v0.3.1
- v0.3.0
- v0.2.0
- v0.1.8
- v0.1.7
- v0.1.6
- v0.1.5
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- dev-doctrine
This package is auto-updated.
Last update: 2024-10-31 11:38:30 UTC
README
Compatible with PHP 7.4
, 8.0
, 8.1
, 8.2
and 8.3
.
Included tools
Optional tools
Installation
composer require --dev fox91/dev-tools
Config example
Add following code to your composer.json
:
"scripts": { "cs-e:test": "phpcs --colors -n", "cs:fix": "phpcbf --colors", "cs:test": "phpcs --colors", "lint:test": "parallel-lint --no-progress --blame --exclude vendor .", "phpstan:test": "phpstan analyse --no-progress --ansi --memory-limit 128M", "psalm:test": "psalm --no-progress --stats --show-info=true --show-snippet", "rector:fix": "rector --ansi process --no-progress-bar", "rector:test": "rector --ansi process --dry-run --no-progress-bar", "unit:test": "phpunit", "fix": [ "@rector:fix", "@cs:fix" ], "test": [ "@lint:test", "@rector:test", "@cs:test", "@psalm:test", "@unit:test" ] }, "scripts-descriptions": { "cs-e:test": "Run PHP_CodeSniffer tests, show only errors", "cs:fix": "Run PHP_CodeSniffer fixes", "cs:test": "Run PHP_CodeSniffer tests", "fix": "Run all fixes!", "lint:test": "Run PHP Parallel Lint tests", "phpstan:test": "Run PHPStan tests", "psalm:test": "Run Psalm tests", "rector:fix": "Run Rector fixes", "rector:test": "Run Rector tests", "test": "Run all tests!", "unit:test": "Run PHPUnit tests" }
Copy default configs to the root of your project:
cp \
vendor/fox91/dev-tools/configs/.editorconfig \
vendor/fox91/dev-tools/configs/.gitignore \
vendor/fox91/dev-tools/configs/.phpcs.xml.dist \
vendor/fox91/dev-tools/configs/gitattributes.txt \
vendor/fox91/dev-tools/configs/phpdoc.dist.xml \
vendor/fox91/dev-tools/configs/phpstan.neon.dist \
vendor/fox91/dev-tools/configs/phpunit.xml.dist \
vendor/fox91/dev-tools/configs/psalm.xml.dist \
vendor/fox91/dev-tools/configs/rector.php \
.
mv gitattributes.txt .gitattributes
Usage
composer test docker run --rm -v "$(pwd)":/data:rw phpdoc/phpdoc run