PHPackages                             greynoise-design/laravel-coding-standard - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. greynoise-design/laravel-coding-standard

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

greynoise-design/laravel-coding-standard
========================================

Laravel 5 Coding Standard for PHP\_CodeSniffer 3.

1.0.2(8y ago)77.6k↓33.3%2[1 issues](https://github.com/greynoise-design/laravel-coding-standard/issues)MITPHP

Since Dec 7Pushed 7y ago1 watchersCompare

[ Source](https://github.com/greynoise-design/laravel-coding-standard)[ Packagist](https://packagist.org/packages/greynoise-design/laravel-coding-standard)[ RSS](/packages/greynoise-design-laravel-coding-standard/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (6)Used By (0)

Greynoise Design - Laravel 5 Standard
=====================================

[](#greynoise-design---laravel-5-standard)

Version 1.0.2

MasterDevelop[![Build Status](https://camo.githubusercontent.com/da459ac92c0880a5f20a7f265141fa00ce2891494a7bca84a8e631807b920ccc/68747470733a2f2f7472617669732d63692e6f72672f677265796e6f6973652d64657369676e2f6c61726176656c2d636f64696e672d7374616e646172642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/greynoise-design/laravel-coding-standard)[![Build Status](https://camo.githubusercontent.com/48784e39a8855e9e36ea462ecf5b12b4112c1de27522bcd163b3f12269a4b952/68747470733a2f2f7472617669732d63692e6f72672f677265796e6f6973652d64657369676e2f6c61726176656c2d636f64696e672d7374616e646172642e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/greynoise-design/laravel-coding-standard)[![Coverage Status](https://camo.githubusercontent.com/7891b422ad04dc697fe23837f52db4584a6a9628adf9795c8ca9b5c850c27f1b/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f677265796e6f6973652d64657369676e2f6c61726176656c2d636f64696e672d7374616e646172642f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/greynoise-design/laravel-coding-standard?branch=master)[![Coverage Status](https://camo.githubusercontent.com/85c24e4b70015c3a21e9a59f64a02f50d5ffa70a9d117b3f07a14a5dedc34fd8/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f677265796e6f6973652d64657369676e2f6c61726176656c2d636f64696e672d7374616e646172642f62616467652e7376673f6272616e63683d646576656c6f70)](https://coveralls.io/github/greynoise-design/laravel-coding-standard?branch=develop)Requirements
------------

[](#requirements)

[PHP\_CodeSniffer 3](https://github.com/squizlabs/PHP_CodeSniffer). (3.1.1 or greater).

### Global install (Recommended)

[](#global-install-recommended)

Globally [install PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer/blob/master/README.md) with one of the various methods. (Skip this step if you already have it installed.)

Once complete you should be able to execute `phpcs -i` on the command line.

You should see something like:-

`The installed coding standards are MySource, PEAR, PSR1, PSR2, Squiz and Zend.`

(Recommended) use composer...

`composer global require greynoise-design/laravel-coding-standard`

or clone this repository...

`git clone -b master --depth 1 https://github.com/greynoise-design/laravel-coding-standard.git`.

or download.

Take note of the paths where they were installed.

(Recommended) Create a symbolic link to the 'laravel-coding-standard/GreynoiseLaravel' directory in 'php\_codesniffer/src/Standards/' eg.

`ln -s ~/Documents/Projects/laravel-coding-standard/GreynoiseLaravel ~/.composer/vendor/squizlabs/php_codesniffer/src/Standards/GreynoiseLaravel`

or copy the `GreynoiseLaravel` directory to `php_codesniffer/src/Standards/`

Executing `phpcs -i` should now show GreynoiseLaravel installed eg.

`The installed coding standards are GreynoiseLaravel, MySource, PEAR, PSR1, PSR2, Squiz and Zend.`

You should now be able to set 'GreynoiseLaravel' as the phpcs standard in the plugin/editor/IDE of your choice.

### Composer install for a single project

[](#composer-install-for-a-single-project)

`cd /Path/To/MyProject`

`composer require greynoise-design/laravel-coding-standard`

Set the 'phpcs standard path' and 'phpcbf standard path' in your editor/plugin config to:

'/Path/To/MyProject/vendor/laravel-coding-standard/GreynoiseLaravel/ruleset.xml'

### Command line use

[](#command-line-use)

#### Sniffing errors &amp; warnings (reporting).

[](#sniffing-errors--warnings-reporting)

Single file...

`phpcs /Path/To/MyFile.php --standard='/Path/To/laravel-coding-standard/GreynoiseLaravel/ruleset.xml'`

or if globally installed.

`phpcs /Path/To/MyFile.php --standard=GreynoiseLaravel`

Directory (recursive).

`phpcs /Path/To/MyProject --standard='/Path/To/laravel-coding-standard/GreynoiseLaravel/ruleset.xml'`

or if globally installed.

`phpcs /Path/To/MyProject --standard=GreynoiseLaravel`

#### Fixing fixable errors.

[](#fixing-fixable-errors)

Single file.

`phpcbf /Path/To/MyFile.php --standard='/Path/To/laravel-coding-standard/GreynoiseLaravel/ruleset.xml'`

or if globally installed.

`phpcbf /Path/To/MyFile.php --standard=GreynoiseLaravel`

Directory (recursive).

`phpcbf /Path/To/MyProject --standard='/Path/To/laravel-coding-standard/GreynoiseLaravel/ruleset.xml'`

or if globally installed.

`phpcbf /Path/To/MyProject --standard=GreynoiseLaravel`

Example editor configs
----------------------

[](#example-editor-configs)

### SublimeText project config

[](#sublimetext-project-config)

Project &gt; Edit Project

Set it to your preference.

```
{
    "SublimeLinter":
    {
        "linters":
        {
            "phpcs":
            {
                "@disable": false,
                "cmd": "/Path/To/php_codesniffer/bin/phpcs",
                // Or if installed globally. "cmd": "phpcs",
                "standard": "/Path/To/laravel-coding-standard/GreynoiseLaravel/ruleset.xml",
                // Exclude folders and files in the linting environment.
                // (Matches exclude-patterns in ruleser.xml).
                "excludes":
                [
                    "*/config/*",
                    "*/cache/*",
                    "*/database/*",
                    "*/docs/*",
                    "*/migrations/*",
                    "*/public/index.php",
                    "*/vendor/*",
                    "*/storage/*",
                    "*/*.blade.php",
                    "*/*.css",
                    "*/*.js",
                    "*/*.xml",
                    "*/autoload.php",
                    "*/Middleware/*",
                    "*/Console/Kernel.php",
                    "*/Exceptions/Handler.php",
                    "*/Http/Kernel.php",
                    "*/Providers/*"
                ],
            }
        }
    },
    "folders":
    [
        {
            "path": "/Path/To/MyProject"
        }
    ],
    "settings":
    {
        "phpcs":
        {
            "extensions_to_execute":
            [
                "php"
            ],
            "phpcs_executable_path": "/Path/To/php_codesniffer/bin/phpcs",
            // Or if installed globally. "phpcbf_executable_path": "phpcs",
            "phpcs_additional_args":
            {
                "--standard": "/Path/To/laravel-coding-standard/GreynoiseLaravel/ruleset.xml",
                // Optional don't show warnings
                // "-n": ""
            },
            "phpcbf_executable_path": "/Path/To/php_codesniffer/bin/phpcbf",
            // Or if installed globally. "phpcbf_executable_path": "phpcbf",
            "phpcbf_additional_args":
            {
                "--standard": "/Path/To/laravel-coding-standard/GreynoiseLaravel/ruleset.xml",
                // Optional don't fix warnings (if they're fixable)
                // "-n": ""
            },
            // Execute the sniffer on file save. (Using contextual menu instead)
            "phpcs_execute_on_save": false,
            // Show the error list after save. (Using sublime linter instead)
            "phpcs_show_errors_on_save": false,
            // Show the errors in the quick panel so you can then goto line. (Gets annoying)
            "phpcs_show_quick_panel": false,
            // Turn the debug output on/off.
            "show_debug": false
        }
    }
}

```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

3083d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d8534f1635189b748ecaf77c12731f8da5b9765f6a3abe7fc018868a7fa9811?d=identicon)[louisl](/maintainers/louisl)

---

Top Contributors

[![louisl](https://avatars.githubusercontent.com/u/1140394?v=4)](https://github.com/louisl "louisl (10 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/greynoise-design-laravel-coding-standard/health.svg)

```
[![Health](https://phpackages.com/badges/greynoise-design-laravel-coding-standard/health.svg)](https://phpackages.com/packages/greynoise-design-laravel-coding-standard)
```

###  Alternatives

[flowframe/laravel-trend

Easily generate model trends

1.1k3.2M33](/packages/flowframe-laravel-trend)[steverobbins/magescan

Scan a Magento application for information

4571.1k](/packages/steverobbins-magescan)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
