laravel-fans / lint
Laravel Lint Code Style
Installs: 22 852
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 2
Forks: 1
Open Issues: 4
Requires
- ext-json: *
- illuminate/support: >=v6.20.36
- phpmd/phpmd: ^2.10
- squizlabs/php_codesniffer: ^3.5
Requires (Dev)
- orchestra/testbench: >=v4.8.0
README
Check Code Style(default PSR-12) for Laravel
install
Run in your Laravel project:
composer require --dev laravel-fans/lint php artisan lint:publish
usage
lint code
php artisan lint:code php artisan lint:code --fix php artisan lint:code app/ tests/ php artisan lint:code --standard=Squiz app/ php artisan lint:staged
The default standard is phpcs.xml
, feel free to change it.
lint route URI
php artisan lint:route
Slug(kebab-case) standard: lowercase ASCII letters, digits, and hyphens (a-z, 0–9, -)