Skip to content

laravel-fans/laravel-lint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 19, 2024
462db8d · Nov 19, 2024

History

36 Commits
Nov 19, 2024
Nov 19, 2024
Nov 19, 2024
Dec 2, 2020
Sep 6, 2020
Nov 19, 2024
Nov 19, 2024

Repository files navigation

Laravel Lint

codecov Packagist Downloads Laravel 9 Laravel 10 Laravel 11

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