2017 © Pedro Peláez
 

library granite

Strict PHP Coding Style enforced by CodeSniffer 3.2+

image

ofbeaton/granite

Strict PHP Coding Style enforced by CodeSniffer 3.2+

  • Thursday, February 8, 2018
  • by ofbeaton
  • Repository
  • 3 Watchers
  • 1 Stars
  • 336 Installations
  • 4 Dependents
  • 0 Suggesters
  • 0 Forks
  • 20 Open issues
  • 18 Versions
  • 0 % Grown

The README.md

granite-php

Opinionated coding style enforcement for PHP., (*1)

Contains

We make use of the following programs: * PHP-Parallel-Lint * PHP_CodeSniffer, (*2)

Installing via Composer

The recommended way to install granite-php is through Composer. Ensure you have it installed first., (*3)

Next, run the Composer command to install the latest stable version:, (*4)

composer require ofbeaton/granite-php
composer require squizlabs/php_codesniffer
composer require jakub-onderka/php-parallel-lint jakub-onderka/php-console-highlighter

Edit your composer.json and add or modify scripts section:, (*5)

{
  ...

  "scripts": {
    "check": [
      "parallel-lint . --exclude vendor",
      "phpcs -p --standard=vendor/ofbeaton/granite-php/phpcs/granite --ignore=vendor src"      
    ],
    "fix": [
      "phpcbf -p --standard=vendor/ofbeaton/granite-php/phpcs/granite --ignore=vendor src"
    ],
    "check-tests": [
      "parallel-lint . --exclude vendor",
      "phpcs -p --standard=vendor/ofbeaton/granite-php/phpcs/granite-tests --ignore=vendor tests"      
    ],
    "fix-tests": [
      "phpcbf -p --standard=vendor/ofbeaton/granite-php/phpcs/granite-tests --ignore=vendor tests"
    ],
    "test": [
      "@check",
      "@check-tests"
    ]
  },

  ...
}

And update your project:, (*6)

composer update ofbeaton/granite-php

After updating, you can now run granite-php:, (*7)

composer test

Running granite-php on test suites

You usually want to relax some requirements for test suites, in that case run:, (*8)

composer check-tests

Documentation

Please head over to the PHP page on the Granite wiki., (*9)

License

This software is distributed under the MIT License. Please see License file for more information., (*10)

The Versions

08/02 2018

dev-master

9999999-dev https://github.com/ofbeaton/granite

Strict PHP Coding Style enforced by CodeSniffer 3.2+

  Sources   Download

MIT

The Requires

 

php_codesniffer code sniffer code style coding style

08/02 2018

2.1.1

2.1.1.0 https://github.com/ofbeaton/granite

Strict PHP Coding Style enforced by CodeSniffer 3.2+

  Sources   Download

MIT

The Requires

 

php_codesniffer code sniffer code style coding style

08/02 2018

2.1

2.1.0.0 https://github.com/ofbeaton/granite

Strict PHP Coding Style enforced by CodeSniffer 3.2+

  Sources   Download

MIT

The Requires

 

php_codesniffer code sniffer code style coding style

31/01 2018

2.0

2.0.0.0 https://github.com/ofbeaton/granite

Strict PHP Coding Style enforced by CodeSniffer 2.3+

  Sources   Download

MIT

The Requires

 

php_codesniffer code sniffer code style coding style

15/02 2017

1.0.1

1.0.1.0 https://github.com/ofbeaton/granite

Strict PHP Coding Style enforced by CodeSniffer 2.3+

  Sources   Download

MIT

The Requires

 

php_codesniffer code sniffer code style coding style

10/08 2016

0.6.1

0.6.1.0 https://github.com/ofbeaton/granite

Strict PHP Coding Style enforced by CodeSniffer 2.3+

  Sources   Download

MIT

The Requires

 

php_codesniffer code sniffer code style coding style

10/08 2016

1.0.0

1.0.0.0 https://github.com/ofbeaton/granite

Strict PHP Coding Style enforced by CodeSniffer 2.3+

  Sources   Download

MIT

The Requires

 

php_codesniffer code sniffer code style coding style

09/09 2015

0.6.0

0.6.0.0 https://github.com/ofbeaton/granite

Strict PHP Coding Style enforced by CodeSniffer 2.3+

  Sources   Download

MIT

The Requires

 

php_codesniffer code sniffer code style coding style

20/08 2015

0.5.0

0.5.0.0 https://github.com/ofbeaton/granite

Strict PHP Coding Style enforced by CodeSniffer 2.3+

  Sources   Download

MIT

The Requires

 

php_codesniffer code sniffer code style coding style

20/08 2015

0.4.1

0.4.1.0 https://github.com/ofbeaton/granite

Strict PHP Coding Style enforced by CodeSniffer 2.3+

  Sources   Download

MIT

The Requires

 

php_codesniffer code sniffer code style coding style

19/08 2015

0.4.0

0.4.0.0 https://github.com/ofbeaton/granite

Strict PHP Coding Style enforced by CodeSniffer 2.3+

  Sources   Download

MIT

The Requires

 

php_codesniffer code sniffer code style coding style

07/08 2015

0.3.1

0.3.1.0 https://github.com/ofbeaton/granite

Strict PHP Coding Style enforced by CodeSniffer 2.3+

  Sources   Download

MIT

The Requires

 

php_codesniffer code sniffer code style coding style

29/07 2015

0.3.0

0.3.0.0 https://github.com/ofbeaton/granite

Strict PHP Coding Style enforced by CodeSniffer 2.3+

  Sources   Download

MIT

The Requires

 

php_codesniffer code sniffer code style coding style

28/07 2015

0.2.1

0.2.1.0 https://github.com/ofbeaton/granite

Strict PHP Coding Style enforced by CodeSniffer 2.3+

  Sources   Download

MIT

The Requires

 

php_codesniffer code sniffer code style coding style

28/07 2015

0.2.0

0.2.0.0 https://github.com/ofbeaton/granite

Strict PHP Coding Style enforced by CodeSniffer 2.3+

  Sources   Download

MIT

The Requires

 

php_codesniffer code sniffer code style coding style

25/07 2015

0.1.2

0.1.2.0 https://github.com/ofbeaton/granite

Strict PHP Coding Style enforced by CodeSniffer 2.3+

  Sources   Download

MIT

The Requires

 

php_codesniffer code sniffer code style coding style

25/07 2015

0.1.1

0.1.1.0 https://github.com/ofbeaton/granite

Strict PHP Coding Style enforced by CodeSniffer 2.3+

  Sources   Download

MIT

The Requires

 

php_codesniffer code sniffer code style coding style

25/07 2015

0.1

0.1.0.0 https://github.com/ofbeaton/granite

Strict PHP Coding Style enforced by CodeSniffer 2.3+

  Sources   Download

MIT

The Requires

 

php_codesniffer code sniffer code style coding style