PHPackages                             msamec/git-hooks - 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. msamec/git-hooks

ActivePhp-composter-action[Utility &amp; Helpers](/categories/utility)

msamec/git-hooks
================

PHP Composter: PHPStan, PHPCsFixer (pre-commit)

v1.0.8(7y ago)05.5kMITPHPPHP ~7.1

Since Sep 30Pushed 7y ago1 watchersCompare

[ Source](https://github.com/msamec/git-hooks)[ Packagist](https://packagist.org/packages/msamec/git-hooks)[ RSS](/packages/msamec-git-hooks/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (3)Versions (10)Used By (0)

Git hooks
=========

[](#git-hooks)

Requirements
------------

[](#requirements)

- PHP &gt;= 7.1

Installation
------------

[](#installation)

- `composer require --dev msamec/git-hooks`
- create `.php_cs.dist` inside root of your project

Documentation
-------------

[](#documentation)

This package will create git hooks that will trigger on git commit. At the moment two tools are running [PHPStan](https://github.com/phpstan/phpstan) and [PHP CS FIXER](https://github.com/FriendsOfPHP/PHP-CS-Fixer).

#### PHPStan

[](#phpstan)

Currently it will run using max level

#### PHP CS Fixer

[](#php-cs-fixer)

It will run against configuration you have in your `.php_cs.dist` file

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~22 days

Total

9

Last Release

2606d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d8a5b6b914a418f8ec0689778e5ffc9781f41f921cf3760c79592d73d847312c?d=identicon)[msamec](/maintainers/msamec)

---

Top Contributors

[![msamec](https://avatars.githubusercontent.com/u/4154034?v=4)](https://github.com/msamec "msamec (22 commits)")

### Embed Badge

![Health badge](/badges/msamec-git-hooks/health.svg)

```
[![Health](https://phpackages.com/badges/msamec-git-hooks/health.svg)](https://phpackages.com/packages/msamec-git-hooks)
```

###  Alternatives

[ticketswap/phpstan-error-formatter

A minimalistic error formatter for PHPStan

87578.8k35](/packages/ticketswap-phpstan-error-formatter)[shopsys/coding-standards

Coding standards definition compatible with PSR-2

20269.1k13](/packages/shopsys-coding-standards)[rich-davis1/phpw2v

A PHP implementation of Word2Vec, a popular word embedding algorithm created by Tomas Mikolov and popularized by Radim Řehůřek &amp; Peter Sojka with the Gensim Python library.

481.2k](/packages/rich-davis1-phpw2v)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
