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

ActiveScripts

agentsquidflaps/pre-commit
==========================

Automate code standards on commit

1.0.1(5y ago)016MITShell

Since Sep 8Pushed 5y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (4)Used By (0)

git pre-commit hook
===================

[](#git-pre-commit-hook)

Heavily inspired by [smgladkovskiy/phpcs-git-pre-commit](https://github.com/smgladkovskiy/phpcs-git-pre-commit)

About
-----

[](#about)

Run php linting, code beautifier and code sniffer automatically to the PS2 standard. This differs from [smgladkovskiy/phpcs-git-pre-commit](https://github.com/smgladkovskiy/phpcs-git-pre-commit) only in that it runs `phpcbf` in addition to `phpcs`.

Install
-------

[](#install)

```
composer require --dev "agentsquidflaps/pre-commit"

```

To enable code sniff, аdd to `post-install-cmd` and `post-update-cmd` in `composer.json` installation script:

```
"scripts": {
    "install-hooks": ["sh ./vendor/agentsquidflaps/pre-commit/src/setup.sh"],
    "post-install-cmd": ["@install-hooks"],
    "post-update-cmd": ["@install-hooks"]
}

```

Then run `composer install` or `composer update`. `pre-commit` hook will be installed or updated.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

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

Total

2

Last Release

2078d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26868698?v=4)[Timothy Norris](/maintainers/agentsquidflaps)[@agentsquidflaps](https://github.com/agentsquidflaps)

### Embed Badge

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

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

###  Alternatives

[slevomat/coding-standard

Slevomat Coding Standard for PHP\_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.

1.5k123.5M1.8k](/packages/slevomat-coding-standard)[drupal/coder

Coder is a library to review Drupal code.

3043.6M461](/packages/drupal-coder)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.1M29](/packages/yoast-yoastcs)[mayflower/mo4-coding-standard

PHP CodeSniffer ruleset implementing the MO4 coding standards extending the Symfony coding standards.

17508.3k5](/packages/mayflower-mo4-coding-standard)

PHPackages © 2026

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