2017 © Pedro Peláez
 

project git-hooks

Git hooks for installing into PHP projects. Include linting and code style checking, etc.

image

mofodojodino/git-hooks

Git hooks for installing into PHP projects. Include linting and code style checking, etc.

  • Thursday, November 24, 2016
  • by mofodojodino
  • Repository
  • 1 Watchers
  • 1 Stars
  • 431 Installations
  • Shell
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 69 % Grown

The README.md

Git hooks collection for PHP projects

Installation

Add the following to your require-dev and scripts sections of your project composer.json. Next run composer update to pull in the package., (*1)

This will run the update and automatically install the hooks in git., (*2)

composer.json, (*3)

{
    "require-dev" {
        "mofodojodino/git-hooks": "dev-master"
    },
    "scripts": {
        "post-install-cmd": [
            "bash ./vendor/mofodojodino/git-hooks/install_hooks.sh"
        ],
        "post-update-cmd": [
            "bash ./vendor/mofodojodino/git-hooks/install_hooks.sh"
        ]
    }
}

And that's it, every time you run composer install or composer update your git hooks will then be updated to the latest., (*4)

The Versions

24/11 2016

dev-master

9999999-dev

Git hooks for installing into PHP projects. Include linting and code style checking, etc.

  Sources   Download

MIT

The Requires

 

by Dean Tedesco