Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/onramplab/onr-phpcs-laravel
The Laravel Coding Standards
https://github.com/onramplab/onr-phpcs-laravel
Last synced: 6 days 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 (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-28T08:38:52.000Z (about 2 years ago)
- Last Synced: 2024-10-13T11:43:53.256Z (about 1 month 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.