https://github.com/laravel-fans/laravel-lint
Check Code Style(default PSR-12) for Laravel
https://github.com/laravel-fans/laravel-lint
laravel lint lint-staged psr-12
Last synced: 2 months ago
JSON representation
Check Code Style(default PSR-12) for Laravel
- Host: GitHub
- URL: https://github.com/laravel-fans/laravel-lint
- Owner: laravel-fans
- License: mit
- Created: 2020-09-06T13:36:41.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-11-21T04:31:52.000Z (over 2 years ago)
- Last Synced: 2024-11-08T05:47:36.160Z (8 months ago)
- Topics: laravel, lint, lint-staged, psr-12
- Language: PHP
- Homepage: https://packagist.org/packages/laravel-fans/lint
- Size: 18.6 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel Lint
[](https://codecov.io/gh/laravel-fans/laravel-lint)
[](https://packagist.org/packages/laravel-fans/lint)
[](https://github.com/laravel-fans/laravel-lint/actions/workflows/laravel-9.yml)
[](https://github.com/laravel-fans/laravel-lint/actions/workflows/laravel-10.yml)
[](https://github.com/laravel-fans/laravel-lint/actions/workflows/laravel-11.yml)Check Code Style(default PSR-12) for Laravel
## install
Run in your Laravel project:
```shell
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
```shell
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
```shell
php artisan lint:route
```Slug(kebab-case) URI standard: lowercase ASCII letters, digits, and hyphens (a-z, 0–9, -)