https://github.com/onramplab/onr-phpcs-laravel
The Laravel Coding Standards
https://github.com/onramplab/onr-phpcs-laravel
Last synced: 3 months ago
JSON representation
The Laravel Coding Standards
- Host: GitHub
- URL: https://github.com/onramplab/onr-phpcs-laravel
- Owner: OnrampLab
- License: unlicense
- Created: 2021-09-06T10:38:09.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-28T08:38:52.000Z (over 2 years ago)
- Last Synced: 2025-02-11T14:46:56.027Z (4 months ago)
- Size: 6.84 KB
- Stars: 0
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OnrampLab's PHPCS Configuration
We use this package to set up a consistent PHPCS configuration across my Laravel projects. The ruleset is based on [@emielmolenaar ruleset](https://github.com/emielmolenaar/phpcs-laravel).
If you wish to use this configuration in your project, install it using composer:
`composer require --dev onramplab/onr-phpcs-laravel`
Afterwards, run `php vendor/bin/phpcs -i` to verify that `onr-phpcs-laravel` is listed as an installed ruleset.
You may now use the ruleset like so:
`php vendor/bin/phpcs --standard=onr-phpcs-laravel app/`
Or you can create a `phpcs.xml` file in your root folder with following example:
```xml
The Laravel Coding Standards
app
config
public
resources
routes
tests```
Contributions welcome.