cuonggt/hooky

An opinionated git hooks tool for PHP.

v0.1.0 2023-04-18 04:52 UTC

This package is auto-updated.

Last update: 2024-04-29 05:36:40 UTC


README

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.