Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-21T04:31:52.000Z (about 2 years ago)
- Last Synced: 2024-11-08T05:47:36.160Z (about 1 month 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
[![codecov](https://codecov.io/gh/laravel-fans/laravel-lint/branch/main/graph/badge.svg)](https://codecov.io/gh/laravel-fans/laravel-lint)
[![Laravel 6](https://github.com/laravel-fans/laravel-lint/workflows/Laravel%206/badge.svg)](https://github.com/laravel-fans/laravel-lint/actions)
[![Laravel 7](https://github.com/laravel-fans/laravel-lint/workflows/Laravel%207/badge.svg)](https://github.com/laravel-fans/laravel-lint/actions)
[![Laravel 8](https://github.com/laravel-fans/laravel-lint/workflows/Laravel%208/badge.svg)](https://github.com/laravel-fans/laravel-lint/actions)
[![Laravel 9](https://github.com/laravel-fans/laravel-lint/workflows/Laravel%209/badge.svg)](https://github.com/laravel-fans/laravel-lint/actions)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
```## usage
### lint code
```shell
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
```shell
php artisan lint:route
```Slug(kebab-case) standard: lowercase ASCII letters, digits, and hyphens (a-z, 0–9, -)