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.

1.0.5 2017-10-24 06:14 UTC

This package is not auto-updated.

Last update: 2024-04-14 02:13:25 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"
],