PHPackages                             lukzgois/laravelcs - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. lukzgois/laravelcs

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

lukzgois/laravelcs
==================

PHP\_CodeSniffer custom Sniff for Laravel coding standard

v0.1.0(11y ago)0269BSD-3-ClausePHP

Since Dec 9Pushed 11y ago1 watchersCompare

[ Source](https://github.com/lukzgois/laravelcs)[ Packagist](https://packagist.org/packages/lukzgois/laravelcs)[ RSS](/packages/lukzgois-laravelcs/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Laravel PHP\_CodeSniffer
========================

[](#laravel-php_codesniffer)

### This is a custom Sniff to detect violations and reformat PHP source code based on [Laravel Coding Standard](http://laravel.com/docs/5.0/contributions#coding-style).

[](#this-is-a-custom-sniff-to-detect-violations-and-reformat-php-source-code-based-on-laravel-coding-standard)

### This is a fork from the Antonio Ribeiro's Project, which can be found [here](https://github.com/antonioribeiro/laravelcs).

[](#this-is-a-fork-from-the-antonio-ribeiros-project-which-can-be-found-here)

It checks the same thing to the Antonio's original project, in additional this sniffer **allows inline control structures**and **check the functions have docblocks**.

Your source code will be checked for PSR-1 &amp; the Laravel "flavor" of PSR-2.

\###Usage wih git

Clone this repository

```
git clone http://github.com/lukzgois/laravelcs LaravelCodeSniffer

```

Execute CodeSniffer

```
phpcs --standard=LaravelCodeSniffer/Standards/Laravel/  /path/to/your/project/files

```

\###Usage with [Composer](https://getcomposer.org/doc/00-intro.md#installation-nix)

The recommended way is to install it globally with the following command:

```
composer global require lukzgois/laravelcs

```

Make sure you have `~/.composer/vendor/bin/` in your PATH.

You will then be able to run PHP Code Sniffer with the Laravel Standard:

```
phpcs --standard=$HOME/.composer/vendor/lukzgois/laravelcs/Standards/Laravel/ /path/to/your/project/files

```

\###Contributing

There are probably still a lot to do here, so please, open issues and send pull requests.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.6% 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

Unknown

Total

1

Last Release

4178d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cdb689fe01ec921449114f1f8fd8f81b13fd1fb8a6f37b8ebee6544f2d78b5cf?d=identicon)[lukz](/maintainers/lukz)

---

Top Contributors

[![antonioribeiro](https://avatars.githubusercontent.com/u/3182864?v=4)](https://github.com/antonioribeiro "antonioribeiro (22 commits)")[![lukzgois](https://avatars.githubusercontent.com/u/231633?v=4)](https://github.com/lukzgois "lukzgois (2 commits)")[![franzyke](https://avatars.githubusercontent.com/u/3132257?v=4)](https://github.com/franzyke "franzyke (1 commits)")[![mvpasarel](https://avatars.githubusercontent.com/u/642453?v=4)](https://github.com/mvpasarel "mvpasarel (1 commits)")

---

Tags

standardslaravelPHP\_CodeSniffercodesniffer

### Embed Badge

![Health badge](/badges/lukzgois-laravelcs/health.svg)

```
[![Health](https://phpackages.com/badges/lukzgois-laravelcs/health.svg)](https://phpackages.com/packages/lukzgois-laravelcs)
```

###  Alternatives

[phpcompatibility/php-compatibility

A set of sniffs for PHP\_CodeSniffer that checks for PHP cross-version compatibility.

2.3k74.3M1.3k](/packages/phpcompatibility-php-compatibility)[pragmarx/laravelcs

PHP\_CodeSniffer custom Sniff for Laravel coding standard

236111.7k2](/packages/pragmarx-laravelcs)[automattic/vipwpcs

PHP\_CodeSniffer rules (sniffs) to enforce WordPress VIP minimum coding conventions

25510.2M145](/packages/automattic-vipwpcs)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.1M29](/packages/yoast-yoastcs)[mayflower/mo4-coding-standard

PHP CodeSniffer ruleset implementing the MO4 coding standards extending the Symfony coding standards.

17508.3k5](/packages/mayflower-mo4-coding-standard)[orisai/coding-standard

Strict PHP coding standard

19193.5k62](/packages/orisai-coding-standard)

PHPackages © 2026

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