alquesadilla / php-coding-standards-enforcer
Enforce coding standards on your PHP & Javascript. Now with SWagger Support. Don't let your team mess up your code base.
Installs: 10 622
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 1
Requires
- php: >=5.5.9
- exussum12/coverage-checker: ^0.7.2
- illuminate/console: 5.*
- squizlabs/php_codesniffer: ^2.6
- zircote/swagger-php: ^2.0
This package is not auto-updated.
Last update: 2025-03-02 07:06:53 UTC
README
Enforce coding standards on your PHP & JS code base
Install with composer
composer require alquesadilla/php-coding-standards-enforcer --dev
Add the provider to app config
Alquesadilla\Enforcer\EnforcerServiceProvider::class
Use artisan to publish the config
php artisan vendor:publish --provider="Alquesadilla\Enforcer\EnforcerServiceProvider" --tag=config
Run artisan command to copy the pre-commit hook
php artisan enforcer:copy
If you are working with other developers and you prefer each time that someone makes a clone and runs composer install, the hook is automatically copied, just add the copy command to the composer scripts, anyways it runs only on the defined environment, which by default is local.
"post-install-cmd": [ "...laravel commands..." "php artisan enforcer:copy" ],