New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

lukzgois/laravelcs

PHP_CodeSniffer custom Sniff for Laravel coding standard
269

Larablocks Analysis

lukzgois/laravelcs works with any PHP project: the latest release (v0.1.0, Dec 9, 2014) doesn't depend on Laravel.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • No release in the last 12 months (last: Dec 9, 2014)
  • 0 downloads a month (needs 10,000)
  • 0 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Dec 9, 2014.
  • No releases in the last 12 months.
  • First released: Dec 9, 2014.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.

Install
composer require lukzgois/laravelcs
Latest Version:v0.1.0
License:BSD-3-Clause
Last Updated:May 6, 2015
Links: GitHub  ·  Packagist
Maintainer: lukz

Laravel PHP_CodeSniffer

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.

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 & 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

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.

Related Packages

fnayou/standards

PHP Code Sniffer configurator.

4,222 5
ludovicose/generator

Code generator for Laravel

23,843 0
jiannius/playbook

The Jiannius engineering standard, and the machinery that installs and enforces...

1,314 1
tey/standards

Deployment preflight and configured, rule-tagged architecture checks for Laravel...

41,184 0
nunomaduro/phpinsights

Instant PHP quality checks from your console.

13,399,565 5,648

Version History

Version Released License
v0.1.0 BSD-3-Clause