captainhook-git/captainhook
CaptainHook is a very flexible git hook manager for software developers that makes sharing git hooks with your team a breeze. observed · 2026-08-28
Health v2 · maintenance only
80/100
- Activity 74
- Release rhythm 76
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 5
- age_days: 3680
- days_rel: 161
- days_push: 161
- n_releases_24m: 36
Adoption not part of the score
1115 stars · 88 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
CaptainHook is a flexible git hook manager for PHP developers that lets teams configure git hook actions in a JSON file. It supports built-in validators, custom PHP classes, and CLI commands to enforce code quality and commit standards.
Use cases
- validate commit messages before committing
- run unit tests before pushing to git
- enforce coding standards on commit
- share git hooks across a team
- install composer dependencies after pulling changes
- prevent commits that break tests
When to choose
- your team uses PHP and wants configurable, shareable git hooks
- you need to enforce commit message formats or pre-push test runs
- you want hooks defined declaratively in a JSON config
When to avoid
- you need a language-agnostic hook manager (consider the Go version or husky)
- your project is not using git
- you only need a single simple hook script
Facets
cli-tool · maturity active
developer-tools cli code-review testing workflow-automation developer-tools version-control php cli cross-platform git-hooks pre-commit commit-validation code-quality php automation command-line
2 sources
- readme: https://github.com/captainhook-git/captainhook · fetched 2026-08-28 · d8634e3a48be
- homepage: http://captainhook.info · fetched 2026-08-29 · 25c629306038
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| captainhook-git/captainhook | main | 80 |
For agents
markdown · JSON · MCP: product_card(name="captainhook-git/captainhook")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem