Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.