PHPackages                             douglasmariz/pre-commit-git - 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. douglasmariz/pre-commit-git

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

douglasmariz/pre-commit-git
===========================

GIT pre-commit hook para verificar no código a existência de certas palavras, frases ou funções (dump, var\_dump, die, print\_r, etc) antes de ser comitado.

09PHP

Since Jun 10Pushed 10y ago1 watchersCompare

[ Source](https://github.com/DouglasMariz/pre-commit-git)[ Packagist](https://packagist.org/packages/douglasmariz/pre-commit-git)[ RSS](/packages/douglasmariz-pre-commit-git/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

GIT - Pre-Commit check for certain words
----------------------------------------

[](#git---pre-commit-check-for-certain-words)

Name:Douglas Mariz &lt;&gt;About
-----

[](#about)

GIT pre-commit hook for checking the existence of certain words/phrases/functions in the code to be committed.

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

[](#how-to-install)

To install hook, copy pre-commit file to your project .git/hooks/pre-commit:

> $ cp pre-commit .git/hooks/pre-commit; $ chmod +x .git/hooks/pre-commit; $ cp commit.msg .git/hooks/commit.msg; $ chmod + x .git/hooks/commit.msg;

The hook comes with the "die", "print\_r" and "var\_dump" functions as the strings to be checked prior to the commit. You can add more strings to be checked if you wish by modifying the checks array

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

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

---

Top Contributors

[![DouglasMariz](https://avatars.githubusercontent.com/u/7629914?v=4)](https://github.com/DouglasMariz "DouglasMariz (11 commits)")

### Embed Badge

![Health badge](/badges/douglasmariz-pre-commit-git/health.svg)

```
[![Health](https://phpackages.com/badges/douglasmariz-pre-commit-git/health.svg)](https://phpackages.com/packages/douglasmariz-pre-commit-git)
```

PHPackages © 2026

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