PHPackages                             partnermarketing/pm-git-hooks-php - 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. partnermarketing/pm-git-hooks-php

ActiveGit-hook

partnermarketing/pm-git-hooks-php
=================================

Partnermarketing Composer git-hook package with hooks for your php projects.

1.0.0(10y ago)08.8k1MITShell

Since Oct 18Pushed 10y ago13 watchersCompare

[ Source](https://github.com/partnermarketing/pm-git-hooks-php)[ Packagist](https://packagist.org/packages/partnermarketing/pm-git-hooks-php)[ RSS](/packages/partnermarketing-pm-git-hooks-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (7)Used By (1)

git-hooks-php
=============

[](#git-hooks-php)

[![License](https://camo.githubusercontent.com/0e04dc3137248417f64a7f10e50a3f3e177a6740d94930d1c1214c584714e7a9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6265726e6172646f73696c76612f6769742d686f6f6b732d7068702e737667)](https://packagist.org/packages/bernardosilva/git-hooks-php)

This is a [`git-hook` package](https://github.com/BernardoSilva/git-hooks-installer-plugin#git-hook-package) that contains some standards I want to use on all my PHP projects.

I use the git `pre-commit` hook to validate all my code before every commit to ensure that my code is always valid.

[View how to create your own git-hook package](https://github.com/BernardoSilva/git-hooks-installer-plugin#how-to-create-my-git-hook-packages)

How to install
--------------

[](#how-to-install)

Just add this package as a dependency on your project.

```
php composer.phar require bernardosilva/git-hooks-php
```

pre-commit
----------

[](#pre-commit)

Currently my pre-commit hook is checking for `PSR2` coding standards that are not met using [php\_codesniffer tool](https://github.com/squizlabs/php_codesniffer).

How to contribute
-----------------

[](#how-to-contribute)

- Create a Pull Request
- Suggest new ideas or open new detected issues

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity67

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 ~41 days

Recently: every ~51 days

Total

6

Last Release

3652d ago

Major Versions

0.2.0 → 1.0.02016-05-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/3fa98f21fa54787b348d88f229aa589adaab11bf99ca34c7c933103212d8d044?d=identicon)[partnermarketing](/maintainers/partnermarketing)

---

Top Contributors

[![BernardoSilva](https://avatars.githubusercontent.com/u/1537510?v=4)](https://github.com/BernardoSilva "BernardoSilva (19 commits)")

---

Tags

githookspre-commitphp-cs-fixercheckstyle

### Embed Badge

![Health badge](/badges/partnermarketing-pm-git-hooks-php/health.svg)

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

###  Alternatives

[captainhook/captainhook

PHP git hook manager

1.1k6.8M368](/packages/captainhook-captainhook)[bernardosilva/git-hooks-php

Composer git-hook package with hooks for your php projects.

2516.7k1](/packages/bernardosilva-git-hooks-php)[projektgopher/whisky

A simple CLI tool for managing a project's git hooks across multiple members.

241281.3k20](/packages/projektgopher-whisky)[wcm/git-php-hooks

Write git hooks with PHP, organize them on a per-project base and automatically add them

6441.1k3](/packages/wcm-git-php-hooks)[igorsgm/laravel-git-hooks

🪝• Efficiently manage Git hooks in Laravel projects. Enhance code quality, save time on reviews, and prevent bugs from entering your repository.

2931.7k1](/packages/igorsgm-laravel-git-hooks)[moxio/captainhook-eslint

Captain Hook Plugin to validate files using ESLint

1147.9k](/packages/moxio-captainhook-eslint)

PHPackages © 2026

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