2017 © Pedro Peláez
 

library composer-codesniffer-hooks

PHP CodeSniffer script hooks for composer

image

metasyntactical/composer-codesniffer-hooks

PHP CodeSniffer script hooks for composer

  • Friday, July 24, 2015
  • by dkreuer
  • Repository
  • 2 Watchers
  • 0 Stars
  • 51 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Composer CodeSniffer Hooks

Build Status Downloads this Month Latest stable, (*1)

Hooks to enable PHP CodeSniffer with the Coding Standard configurable after running composer install or composer update., (*2)

The project is abandoned!

This project is abandoned in favor of captainhook/captainhook providing general git hooks management. Everything in this repository can be achieved with captainhook/captainhook., (*3)

Install

Install dependency via composer:, (*4)

$ composer require --dev metasyntactical/composer-codesniffer-hooks

Add scripts to composer post hooks:, (*5)

"scripts": {
    "post-install-cmd": [
        "MetaSyntactical\\CodeSniffer\\Composer\\ScriptHandler::addPhpCsToPreCommitHook"
    ],
    "post-update-cmd": [
        "MetaSyntactical\\CodeSniffer\\Composer\\ScriptHandler::addPhpCsToPreCommitHook"
    ]
}

Add the codesniffer standard which has been installed as dependency (e.g. "metasyntactical/symfony-coding-standard") to the extra field in composer.json:, (*6)

"extras": {
    "codesniffer": {
        "standard": {
            "dependency": "metasyntactical/symfony-coding-standard"
        }
    }
}

On each composer install or composer update the hook will be deployed to the local git repository., (*7)

Usage

Every time you try to commit, PHP_CodeSniffer will run on changed .php files only. There is nothing to do manually., (*8)

The Versions

24/07 2015

dev-master

9999999-dev

PHP CodeSniffer script hooks for composer

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Kreuer

24/07 2015

v1.0.1

1.0.1.0

PHP CodeSniffer script hooks for composer

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Kreuer

26/03 2015

v1.0.0

1.0.0.0

PHP CodeSniffer script hooks for composer

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Kreuer

26/03 2015

v1.0.0-beta.1

1.0.0.0-beta1

PHP CodeSniffer script hooks for composer

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Kreuer