laravel-fans / lint
Laravel Lint Code Style
Installs: 24 628
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 2
Forks: 1
Open Issues: 1
Requires
- ext-json: *
- illuminate/support: >=v9
- laravel/pint: >=v1
- phpmd/phpmd: >=2.10
- squizlabs/php_codesniffer: >=3.5
Requires (Dev)
- orchestra/testbench: >=v7
- php-mock/php-mock: ^2.5
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
You will find pint.json
, phpcs.xml
and phpmd.xml
in your project, feel free to change it.
usage
lint all
php artisan lint
php artisan lint --fix
lint code
php artisan lint:code php artisan lint:code --fix php artisan lint:code app/ tests/ php artisan lint:code app/ tests/ --fix php artisan lint:pint php artisan lint:phpcs php artisan lint:pmd php artisan lint:staged
lint route
php artisan lint:route
Slug(kebab-case) URI standard: lowercase ASCII letters, digits, and hyphens (a-z, 0–9, -)