On this page you find all important commands for the CLI tool php-cs-fixer. If the
command you are looking for is missing please ask our AI.
php-cs-fixer
The PHP Coding Standards Fixer (PHP CS Fixer) tool fixes your code to follow standards; whether you want to follow PHP coding standards as defined in the PSR-1, PSR-2, etc., or other community driven ones like the Symfony one. You can also define your (team's) style through configuration.
List of commands for php-cs-fixer:
-
php-cs-fixer:tldr:112b2 php-cs-fixer: Execute code style fixing in the current directory.$ php-cs-fixer fixtry on your machineexplain this command
-
php-cs-fixer:tldr:29022 php-cs-fixer: Display the rules that have been applied.$ php-cs-fixer fix --verbosetry on your machineexplain this command
-
php-cs-fixer:tldr:2e592 php-cs-fixer: Execute code style linting without applying changes.$ php-cs-fixer fix --dry-runtry on your machineexplain this command
-
php-cs-fixer:tldr:5f6c0 php-cs-fixer: Describe a rule or ruleset.$ php-cs-fixer describe ${rule}try on your machineexplain this command
-
php-cs-fixer:tldr:60c91 php-cs-fixer: Output the results in a different format.$ php-cs-fixer fix --format=${select}try on your machineexplain this command
-
php-cs-fixer:tldr:89182 php-cs-fixer: Execute code style fixing for a specific directory.$ php-cs-fixer fix ${path-to-directory}try on your machineexplain this command
-
php-cs-fixer:tldr:a82ba php-cs-fixer: Execute code style fixes using specific rules.$ php-cs-fixer fix --rules=${rules}try on your machineexplain this command
-
php-cs-fixer:tldr:e1519 php-cs-fixer: Display files that require fixing.$ php-cs-fixer list-filestry on your machineexplain this command