Skip to content

cuonggt/hooky

Repository files navigation

hooky

Introduction

Hooky is an opinionated git hooks tool for PHP artisan. Hooky is heavily inspired by husky and make it simple to lint your commit messages, lint code, run tests, etc... when you commit or push.

Installation

First, install Hooky into your project using the Composer package manager:

composer require --dev cuonggt/hooky

Then run the install command:

vendor/bin/hooky install

Usage

Add a hook:

vendor/bin/hooky add .hooky/pre-commit "vendor/bin/phpunit"

Make a commit:

git add .hooky/pre-commit
git commit -m "Keep calm and commit"
# `vendor/bin/phpunit` will run

License

Hooky is open-sourced software licensed under the MIT license.

About

An opinionated git hooks tool for PHP.

Resources

License

Stars

Watchers

Forks

Packages

No packages published