emielmolenaar/phpcs-laravel

PHPCS libraries and configuration for Laravel

Installs: 43 153

Dependents: 0

Suggesters: 0

Security: 0

Stars: 30

Watchers: 3

Forks: 14

Open Issues: 0

Type:phpcodesniffer-standard

2.1 2021-05-17 12:00 UTC

This package is auto-updated.

Last update: 2022-01-17 13:33:27 UTC


README

I use this package to set up a consistent PHPCS configuration across my Laravel projects. The ruleset is based on @nandosalles' ruleset.

If you wish to use this configuration in your project, install it using composer:

composer require --dev emielmolenaar/phpcs-laravel

Afterwards, run php vendor/bin/phpcs -i to verify that phpcs-laravel is listed as an installed ruleset.

You may now use the ruleset like so:

php vendor/bin/phpcs --standard=phpcs-laravel app/

Contributions welcome.