Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dealerinspire/laravel-coding-standard
https://github.com/dealerinspire/laravel-coding-standard
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dealerinspire/laravel-coding-standard
- Owner: dealerinspire
- License: mit
- Created: 2019-05-06T19:19:28.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-11-16T17:14:33.000Z (about 1 year ago)
- Last Synced: 2024-11-29T05:22:33.472Z (2 months ago)
- Language: PHP
- Size: 31.3 KB
- Stars: 2
- Watchers: 13
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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