This project is part of the Symfony ecosystem and follows the Symfony Contribution Guidelines.
This project uses PHPUnit Bridge to run the tests.
Install the required dependencies with:
composer installTo run the tests, use the following command:
./vendor/bin/simple-phpunitThis project uses PHPStan for static analysis. To run PHPStan, use the following command:
Install the required dependencies for the project, PHPStan itself and the extra packages that the project uses:
composer update
composer update --working-dir=tools/phpstan
composer update --working-dir=tools/phpstan/includesRun PHPStan with:
tools/phpstan/vendor/bin/phpstanThis project uses PHP CS Fixer to ensure code style consistency.
Install the required dependencies with:
composer update --working-dir=tools/php-cs-fixerTo fix the code style, run:
tools/php-cs-fixer/vendor/bin/php-cs-fixer fixThe PHP-CS-Fixer package is bundled with this project and used by some makers.
To update the Phar file to the latest version, run:
curl -fsSLo src/Resources/bin/php-cs-fixer.phar https://cs.symfony.com/download/php-cs-fixer-v3.phar
chmod a+x src/Resources/bin/php-cs-fixer.pharGet the version of the downloaded Phar file:
php src/Resources/bin/php-cs-fixer.phar --versionUpdate the BUNDLED_PHP_CS_FIXER_VERSION constant in src/Util/TemplateLinter.php:
- public const BUNDLED_PHP_CS_FIXER_VERSION = '3.49.0';
+ public const BUNDLED_PHP_CS_FIXER_VERSION = '3.92.5';