Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/dealerinspire/laravel-coding-standard


https://github.com/dealerinspire/laravel-coding-standard

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Laravel Coding Standard

[![Build Status][travis-badge]][travis-home]

Dealer Inspire Laravel Coding Standard provides sniffs that help developers write better Laravel code.

## Installation

Install the package by requiring it with Composer.

```bash
composer require dealerinspire/laravel-coding-standard
```

## Usage

First you need to make sure that `vendor/dealerinspire/laravel-coding-standard` is in your `phpcs.xml` file's `installed_paths` setting.

```xml

```

Then you can use any of the sniffs provided in this package.

```xml

```

## Provided Sniffs

### DealerInspireLaravelCodingStandard.Models.NoGuardedAttributes

Checks that no classes use the `protected $guarded` attribute. Useful for any projects that strictly enforce the use of explicitly whitelisting fillable attributes.

### DealerInspireLaravelCodingStandard.Providers.DeferredProviders

Checks all deferred service providers to ensure that any bindings in the file are also included in the `provides` array.
Note that your service provider class must end with the conventional suffix `ServiceProvider`. e.g. `FooServiceProvider.php`

## License

MIT © [Dealer Inspire](https://www.dealerinspire.com/)

[travis-home]:https://travis-ci.com/dealerinspire/laravel-coding-standard
[travis-badge]:https://travis-ci.org/dealerinspire/laravel-coding-standard.svg?branch=master