|
1 | 1 | # composer-git-hooks
|
2 |
| -[](https://travis-ci.org/BrainMaestro/composer-git-hooks) |
3 |
| -[](https://packagist.org/packages/brainmaestro/composer-git-hooks) |
4 |
| -[](https://packagist.org/packages/brainmaestro/composer-git-hooks) |
| 2 | + |
| 3 | +[![Software License][badge-license]](LICENSE) |
| 4 | +[![Travis][badge-travis]][link-travis] |
| 5 | +[![Packagist][badge-packagist]][link-packagist] |
| 6 | +[![Download][badge-downloads]][link-packagist] |
| 7 | + |
5 | 8 | > Manage git hooks easily in your composer configuration. This package makes it easy to implement a consistent project-wide usage of git hooks. Specifying hooks in the composer file makes them available for every member of the project team. This provides a consistent environment and behavior for everyone which is great.
|
6 | 9 |
|
7 | 10 | ## Install
|
@@ -45,7 +48,7 @@ Add a `cghooks` script to the `scripts` section of your `composer.json` file. Th
|
45 | 48 |
|
46 | 49 | #### Composer Events
|
47 | 50 |
|
48 |
| -Add the following events to your `composer.json` file. The `cghooks` commands will be run every time the events occur. Go to [Composer Command Events](https://getcomposer.org/doc/articles/scripts.md#command-events) for more details about composer's event system. |
| 51 | +Add the following events to your `composer.json` file. The `cghooks` commands will be run every time the events occur. Go to [Composer Command Events][link-composer-events] for more details about composer's event system. |
49 | 52 |
|
50 | 53 | ```json
|
51 | 54 | {
|
@@ -107,9 +110,31 @@ Option | Description | Command
|
107 | 110 |
|
108 | 111 | Hooks can be tested with `cghooks ${hook}` before adding them. Example `cghooks pre-commit` runs the `pre-commit` hook.
|
109 | 112 |
|
110 |
| -## Related |
111 |
| -- [husky](https://github.com/typicode/husky) |
| 113 | +## Contributing |
| 114 | + |
| 115 | +Please see [CONTRIBUTING](CONTRIBUTING.md) for details. |
| 116 | + |
| 117 | +## Credits |
112 | 118 |
|
| 119 | +- [Ezinwa Okpoechi][link-author] |
| 120 | +- [All Contributors][link-contributors] |
| 121 | + |
| 122 | +## Related |
| 123 | +- [husky][link-husky] |
113 | 124 |
|
114 | 125 | ## License
|
115 |
| -MIT © Ezinwa Okpoechi |
| 126 | + |
| 127 | +The MIT License (MIT). Please see [License File](LICENSE) for more information. |
| 128 | + |
| 129 | +[badge-downloads]: https://img.shields.io/packagist/dt/brainmaestro/composer-git-hooks.svg?style=flat-square |
| 130 | +[badge-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg |
| 131 | +[badge-packagist]: https://img.shields.io/packagist/v/brainmaestro/composer-git-hooks.svg?style=flat-square |
| 132 | +[badge-stable]: https://poser.pugx.org/your-app-rocks/eloquent-uuid/v/stable |
| 133 | +[badge-travis]: https://img.shields.io/travis/BrainMaestro/composer-git-hooks.svg?style=flat-square |
| 134 | + |
| 135 | +[link-author]: https://github.com/BrainMaestro |
| 136 | +[link-composer-events]: https://getcomposer.org/doc/articles/scripts.md#command-events |
| 137 | +[link-contributors]: ../../contributors |
| 138 | +[link-husky]: https://github.com/typicode/husky |
| 139 | +[link-packagist]: https://packagist.org/packages/brainmaestro/composer-git-hooks |
| 140 | +[link-travis]: https://travis-ci.org/BrainMaestro/composer-git-hooks |
0 commit comments