PHPackages                             padosoft/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. [Testing &amp; Quality](/categories/testing)
4. /
5. padosoft/hooks

ActiveLibrary[Testing &amp; Quality](/categories/testing)

padosoft/hooks
==============

Padosoft git hooks

0.1.4(8y ago)093[1 PRs](https://github.com/padosoft/hooks/pulls)MITPHP

Since Mar 2Pushed 9mo ago2 watchersCompare

[ Source](https://github.com/padosoft/hooks)[ Packagist](https://packagist.org/packages/padosoft/hooks)[ Docs](https://github.org/padosoft/hooks/)[ RSS](/packages/padosoft-hooks/feed)WikiDiscussions master Synced 2mo ago

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

hooks
=====

[](#hooks)

Padosoft git hooks

[![Latest Version on Packagist](https://camo.githubusercontent.com/0e60eba6779ebbcefba7507f203e93ff0c201fe1bc7152205cbf1c6d2a892836/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7061646f736f66742f686f6f6b732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/padosoft/hooks)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/95c2d1d410fd9ed00bf1125339f268f66c98e95d445899f1313265ca3e13ecb6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7061646f736f66742f686f6f6b732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/padosoft/hooks)

Table of Contents
=================

[](#table-of-contents)

- [hooks](#hooks)
- [Table of Contents](#table-of-contents)
- [Prerequisites](#prerequisites)
- [Install](#install)
- [Usage](#usage)
- [Example](#example)
- [Screenshots](#screenshots)
- [Change Log](#change-log)
- [Testing](#testing)
- [Contributing](#contributing)
- [Security](#security)
- [API Documentation](#api-documentation)
- [Credits](#credits)
- [About Padosoft](#about-padosoft)
- [License](#license)

Prerequisites
=============

[](#prerequisites)

Install
=======

[](#install)

This package can be installed through Composer.

```
composer require padosoft/hooks
```

If you install in a laravel project add in config-&gt;app.php the following value in service providers array:

Padosoft\\Hooks\\HooksServiceProvider::class,

then use php artisan vendor:publish

In a non-laravel project you must copy the .php\_cs file from vendor/padosoft/hooks/src/config to the root of project, and the pre-commit file from vendor/padosoft/hooks/src/config to .git/hooks folder. If you want customize the static-review operation create hooks folder in the root of project then copy pre-commit.php file from vendor/padosoft/static-review/src/config/pre-commit.php.

Be careful in a linux or mac environment change

php.exe "vendor/padosoft/hooks/src/php-cs-fix.php" php.exe "vendor/padosoft/hooks/src/static-review-pre-commit.php"

in the .git/hooks/pre-commit file to

php "vendor/padosoft/hooks/src/php-cs-fix.php" php "vendor/padosoft/hooks/src/static-review-pre-commit.php"

Usage
=====

[](#usage)

Pre-commit git hook is invoked by git commit. Exiting with non-zero status from this script causes the git commit to abort. Can be bypassed with --no-verify option.

Example
-------

[](#example)

Screenshots
===========

[](#screenshots)

Change Log
==========

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
=======

[](#testing)

Contributing
============

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
========

[](#security)

If you discover any security related issues, please email instead of using the issue tracker.

API Documentation
=================

[](#api-documentation)

Credits
=======

[](#credits)

- [Padosoft](https://github.com/padosoft)
- [All Contributors](../../contributors)

About Padosoft
==============

[](#about-padosoft)

Padosoft is a software house based in Florence, Italy. Specialized in E-commerce and web sites.

License
=======

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance41

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 68.8% 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 ~75 days

Recently: every ~130 days

Total

8

Last Release

3201d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9fabb1f16f7a29a235494893175d25d51628fe2a6c9052834e35abe0666c9a8e?d=identicon)[lopadova](/maintainers/lopadova)

---

Top Contributors

[![alevento](https://avatars.githubusercontent.com/u/5909180?v=4)](https://github.com/alevento "alevento (11 commits)")[![lopadova](https://avatars.githubusercontent.com/u/10467699?v=4)](https://github.com/lopadova "lopadova (5 commits)")

---

Tags

gitgit-hookshookscode qualitygithookspre-commit

### Embed Badge

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

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

###  Alternatives

[captainhook/captainhook

PHP git hook manager

1.1k6.8M370](/packages/captainhook-captainhook)[dealerdirect/phpcodesniffer-composer-installer

PHP\_CodeSniffer Standards Composer Installer Plugin

596161.9M1.9k](/packages/dealerdirect-phpcodesniffer-composer-installer)[ekino/phpstan-banned-code

Detected banned code using PHPStan

2925.6M92](/packages/ekino-phpstan-banned-code)[staabm/phpstan-dba

2912.3M2](/packages/staabm-phpstan-dba)[micheh/phpcs-gitlab

GitLab Report for PHP\_CodeSniffer (display the violations in the GitLab CI/CD Code Quality Report)

4411.1M17](/packages/micheh-phpcs-gitlab)[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)
