mouf / codestylefixservice
Fix code style automatically
Installs: 90
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 8
Forks: 1
Type:mouf-library
Requires
- fabpot/php-cs-fixer: ~1.11
Requires (Dev)
- phpunit/phpunit: ~4.0 | ~5.0
This package is auto-updated.
Last update: 2024-11-15 05:54:30 UTC
README
Description
This package makes usage of PhpCsFixer easy from PHP code ; for more information check the PHP-CS-Fixer documentation
Installation
Add to ./composer.json file
"require": {
"mouf/codestylefixservice"
}
or
composer install mouf/codestylefixservice
Usage
$fixService = new FixService(); $fixService->csFix("MyPhpFile.php"); // add the path to file you want to auto-clean