LaravelPackages.net
Acme Inc.
Toggle sidebar
laravel-fans/lint

Laravel Lint Code Style

44.683
9
v9.3.1
About laravel-fans/lint

laravel-fans/lint is a Laravel package for laravel lint code style. It currently has 9 GitHub stars and 44.683 downloads on Packagist (latest version v9.3.1). Install it with composer require laravel-fans/lint. Discover more Laravel packages by laravel-fans or browse all Laravel packages to compare alternatives.

Last updated

Laravel Lint

codecov Packagist Downloads Laravel 10 Laravel 11 Laravel 12

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, -)

Star History Chart