2017 © Pedro Peláez
 

library laravelcs

PHP_CodeSniffer custom Sniff for Laravel coding standard

image

lukzgois/laravelcs

PHP_CodeSniffer custom Sniff for Laravel coding standard

  • Wednesday, May 6, 2015
  • by lukz
  • Repository
  • 1 Watchers
  • 0 Stars
  • 234 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 23 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

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., (*1)

Your source code will be checked for PSR-1 & the Laravel "flavor" of PSR-2., (*2)

Usage wih git

Clone this repository, (*3)

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

Execute CodeSniffer, (*4)

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:, (*5)

composer global require lukzgois/laravelcs

Make sure you have ~/.composer/vendor/bin/ in your PATH., (*6)

You will then be able to run PHP Code Sniffer with the Laravel Standard:, (*7)

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., (*8)

The Versions

06/05 2015

dev-master

9999999-dev

PHP_CodeSniffer custom Sniff for Laravel coding standard

  Sources   Download

BSD-3-Clause

The Requires

 

by Lucas Padilha Gois

laravel code php_codesniffer standards sniffer

09/12 2014

v0.1.0

0.1.0.0

PHP_CodeSniffer custom Sniff for Laravel coding standard

  Sources   Download

BSD-3-Clause

The Requires

 

laravel code php_codesniffer standards sniffer