2017 © Pedro Peláez
 

composer-plugin git-hooks-installer-plugin

image

bernardosilva/git-hooks-installer-plugin

  • Wednesday, December 13, 2017
  • by BernardoSilva
  • Repository
  • 2 Watchers
  • 8 Stars
  • 19,921 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 19 Versions
  • 6 % Grown

The README.md

git-hooks-installer-plugin

Latest Stable Version Total Downloads Monthly Downloads License Build Status Code Coverage, (*1)

This project goal is to share and enforce code standards to all your projects., (*2)

Why create this?

Currently there are millions of php projects that do not follow or adapt any code standards., (*3)

I think the main reasons for that are:, (*4)

  • Lack of time to implement a script to check them;
  • Not sure how those will help;
  • Not sure how to enforce them for all team members;
  • Not aware of what that is;

Using git-hook packages will enable everyone to share their hooks and reduce de number of projects not following any standards., (*5)

git-hook package

A git-hook package is a composer package that uses the type git-hook., (*6)

Any package that set git-hook-installer-plugin as dependency and type to git-hook will be installed on your project using this plugin., (*7)

Git-hook packages available

Create you own git-hook package to be listed here and share it with everyone., (*8)

How to create my git-hook packages?

You can start by looking into this example, (*9)

Things required to create a new git-hook package?, (*10)

Example of new composer.json file, (*11)

{
    "name": "yourname/your-package-name",
    "type": "git-hook",
    "description": "Composer git-hook package with hooks for your php projects.",
    "require": {
        "bernardosilva/git-hooks-installer-plugin": "^1.0.0"
    }
}

Note: Your composer.json must have a specific type to be installed in correct directory:, (*12)

"type": "git-hook"

Also your git hooks should have execution permission., (*13)

Available hooks

You can create any of those files on your package with execute permissions., (*14)

See a list of all git hooks available, (*15)

How to Install

php composer.phar require bernardosilva/git-hooks-installer-plugin

How to test

./vendor/bin/phpunit

How to contribute

  • Create your own git hook composer package., (*16)

  • Create a PR to list your package on this page., (*17)

  • Raise new issues or add suggestions to improve this plugin., (*18)

Created By

Bernardo Silva, (*19)

License

MIT © Bernardo Silva, (*20)

The Versions

13/12 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bernardo Silva

13/12 2017

1.2.1

1.2.1.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bernardo Silva

13/12 2017

dev-fix-get-dir-path

dev-fix-get-dir-path

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bernardo Silva

01/12 2017

1.2.0

1.2.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bernardo Silva

01/12 2017

dev-add-support-for-php53

dev-add-support-for-php53

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bernardo Silva

01/12 2017

dev-add-badges-to-readme

dev-add-badges-to-readme

  Sources   Download

MIT

The Requires

  • composer-plugin-api ~1.0

 

The Development Requires

by Bernardo Silva

01/12 2017

dev-add-latest-php-version-to-be-tested

dev-add-latest-php-version-to-be-tested

  Sources   Download

MIT

The Requires

  • composer-plugin-api ~1.0

 

The Development Requires

by Bernardo Silva

31/10 2017

dev-add-partnermarketing-hooks

dev-add-partnermarketing-hooks

  Sources   Download

MIT

The Requires

  • composer-plugin-api ~1.0

 

The Development Requires

by Bernardo Silva

31/10 2017

dev-add-reference-git-hooks-available

dev-add-reference-git-hooks-available

  Sources   Download

MIT

The Requires

  • composer-plugin-api ~1.0

 

The Development Requires

by Bernardo Silva

31/10 2017

dev-1-improve-git-directory

dev-1-improve-git-directory

  Sources   Download

MIT

The Requires

  • composer-plugin-api ~1.0

 

The Development Requires

by Bernardo Silva

03/10 2017

1.1.1

1.1.1.0

  Sources   Download

MIT

The Requires

  • composer-plugin-api ~1.0

 

The Development Requires

by Bernardo Silva

03/10 2017

dev-fix-hook-permission

dev-fix-hook-permission

  Sources   Download

MIT

The Requires

  • composer-plugin-api ~1.0

 

The Development Requires

by Bernardo Silva

03/10 2017

1.1.0

1.1.0.0

  Sources   Download

MIT

The Requires

  • composer-plugin-api ~1.0

 

The Development Requires

by Bernardo Silva

15/09 2017

dev-improve-plugin-installation

dev-improve-plugin-installation

  Sources   Download

MIT

The Requires

  • composer-plugin-api ~1.0

 

The Development Requires

by Bernardo Silva

10/05 2016

1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

  • composer-plugin-api ~1.0

 

The Development Requires

by Bernardo Silva

30/10 2015

0.1.0

0.1.0.0

  Sources   Download

MIT

The Requires

  • composer-plugin-api ~1.0.0

 

The Development Requires

by Bernardo Silva

18/10 2015

0.0.3

0.0.3.0

  Sources   Download

GPL3

The Requires

  • composer-plugin-api ~1.0.0

 

The Development Requires

by Bernardo Silva

18/10 2015

0.0.2

0.0.2.0

  Sources   Download

GPL3

The Requires

  • composer-plugin-api ~1.0.0

 

The Development Requires

by Bernardo Silva

18/10 2015

0.0.1

0.0.1.0

  Sources   Download

GPL3

The Requires

  • composer-plugin-api ~1.0.0

 

The Development Requires

by Bernardo Silva