2017 © Pedro PelĆ”ez
 

library php-githook-sniffer

Php-GitHook-Sniffer is a simple collection of automated and customizable tasks that you can perform with your git repository through the hooks.

image

especializati/php-githook-sniffer

Php-GitHook-Sniffer is a simple collection of automated and customizable tasks that you can perform with your git repository through the hooks.

  • Friday, February 23, 2018
  • by joaorobertopb
  • Repository
  • 3 Watchers
  • 2 Stars
  • 98 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 20 % Grown

The README.md

Php GitHook Sniffer

README em PortuguĆŖs., (*1)

![Build Status][ico-build] Latest Stable Version Total Downloads Latest Unstable Version [Code Coverage][link-scrutinizer] Quality Score Software License, (*2)

Php-GitHook-Sniffer is a simple collection of automated tasks that you can perform with your git repository through the hooks., (*3)

Available hooks

  • pre-commit

pre-commit

Check the commited files:, (*4)

  • Check PHP Syntax (with PHPLint)
  • Fix code style according to PSR2 standard

Examples

verifying syntax:

php-lint, (*5)

Applying PSR2 rules:

php-cs-fix, (*6)

Other Hooks

Coming Soon., (*7)

Install

Add joaorobertopb/php-githook-sniffer as a development dependency in composer.json, (*8)

"require-dev": {
    "joaorobertopb/php-githook-sniffer": "~0.0.5"
}

Or via Composer, (*9)

``` bash $ composer require joaorobertopb/php-githook-sniffer --dev, (*10)


Copy src/Hooks/pre-commit for .git/hooks. ( Execution Permission Required ) ``` bash $ php -r "if(file_exists('./.git')&&file_exists('./vendor/joaorobertopb/php-githook-sniffer/src/Hooks/pre-commit')){copy('./vendor/joaorobertopb/php-githook-sniffer/src/Hooks/pre-commit','./.git/hooks/pre-commit');chmod('./.git/hooks/pre-commit',0777);}"

or, (*11)

"scripts": {
    "post-install-cmd": [
      "php -r \"if(file_exists('./.git')&&file_exists('./vendor/joaorobertopb/php-githook-sniffer/src/Hooks/pre-commit')){copy('./vendor/joaorobertopb/php-githook-sniffer/src/Hooks/pre-commit','./.git/hooks/pre-commit');chmod('./.git/hooks/pre-commit',0777);}\""
    ],
    "post-update-cmd": [
      "php -r \"if(file_exists('./.git')&&file_exists('./vendor/joaorobertopb/php-githook-sniffer/src/Hooks/pre-commit')){copy('./vendor/joaorobertopb/php-githook-sniffer/src/Hooks/pre-commit','./.git/hooks/pre-commit');chmod('./.git/hooks/pre-commit',0777);}\""
    ]
}

Change log

Please see CHANGELOG for more information on what has changed recently., (*12)

Testing

Coming Soon., (*13)

Credits

License

The MIT License (MIT). Please see License File for more information., (*14)

The Versions

23/02 2018

dev-master

9999999-dev https://github.com/especializati/php-githook-sniffer

Php-GitHook-Sniffer is a simple collection of automated and customizable tasks that you can perform with your git repository through the hooks.

  Sources   Download

MIT

The Requires

 

pre-commit hooks especializati php-githook-sniffer

23/02 2018

0.0.5

0.0.5.0 https://github.com/especializati/php-githook-sniffer

Php-GitHook-Sniffer is a simple collection of automated and customizable tasks that you can perform with your git repository through the hooks.

  Sources   Download

MIT

The Requires

 

pre-commit hooks especializati php-githook-sniffer

19/12 2017

0.0.4

0.0.4.0 https://github.com/especializati/php-githook-sniffer

Php-GitHook-Sniffer is a simple collection of automated and customizable tasks that you can perform with your git repository through the hooks.

  Sources   Download

MIT

The Requires

 

pre-commit hooks especializati php-githook-sniffer

14/12 2017

0.0.3

0.0.3.0 https://github.com/especializati/php-githook-sniffer

Php-GitHook-Sniffer is a simple collection of automated and customizable tasks that you can perform with your git repository through the hooks.

  Sources   Download

MIT

The Requires

 

pre-commit hooks especializati php-githook-sniffer

07/10 2017

0.0.2

0.0.2.0 https://github.com/especializati/php-githook-sniffer

Php-GitHook-Sniffer is a simple collection of automated and customizable tasks that you can perform with your git repository through the hooks.

  Sources   Download

MIT

The Requires

 

pre-commit hooks especializati php-githook-sniffer

19/08 2017

0.0.1

0.0.1.0 https://github.com/especializati/php-githook-sniffer

Php-GitHook-Sniffer is a simple collection of automated and customizable tasks that you can perform with your git repository through the hooks.

  Sources   Download

MIT

The Requires

 

pre-commit hooks especializati php-githook-sniffer