PHPackages                             sweetchuck/git-hooks-stdinput-reader - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. sweetchuck/git-hooks-stdinput-reader

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sweetchuck/git-hooks-stdinput-reader
====================================

Read and parse the StdInput of Git hooks

v0.1.0(6y ago)0102.9k↓45%GPL-2.0-or-laterPHPPHP &gt;=7.2CI passing

Since Jul 8Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/Sweetchuck/git-hooks-stdinput-reader)[ Packagist](https://packagist.org/packages/sweetchuck/git-hooks-stdinput-reader)[ RSS](/packages/sweetchuck-git-hooks-stdinput-reader/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelog (2)Dependencies (6)Versions (6)Used By (0)

Read and parse the stdInput of Git hook scripts
===============================================

[](#read-and-parse-the-stdinput-of-git-hook-scripts)

[![CircleCI](https://camo.githubusercontent.com/6c3a62efd2c030d7f7c5416cb0409214647e1827182f0b4d4dc3230fa98e078e/68747470733a2f2f636972636c6563692e636f6d2f67682f5377656574636875636b2f6769742d686f6f6b732d737464696e7075742d7265616465722e7376673f7374796c653d737667)](https://circleci.com/gh/Sweetchuck/git-hooks-stdinput-reader)[![codecov](https://camo.githubusercontent.com/5b9e9f7436a4e0e0f2a617e11e99a07ea754bc2500a6c67fe87befc95087bab9/68747470733a2f2f636f6465636f762e696f2f67682f5377656574636875636b2f6769742d686f6f6b732d737464696e7075742d7265616465722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/Sweetchuck/git-hooks-stdinput-reader)

Supported Git hooks
-------------------

[](#supported-git-hooks)

- [post-receive](https://git-scm.com/docs/githooks#post-receive)
- [post-rewrite](https://git-scm.com/docs/githooks#_post_rewrite)
- [pre-push](https://git-scm.com/docs/githooks#_pre_push)
- [pre-receive](https://git-scm.com/docs/githooks#pre-receive)

Usage
-----

[](#usage)

**.git/hooks/pre-receive**

```
#!/usr/bin/env php
