PHPackages                             mc388/captainhook - 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. mc388/captainhook

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

mc388/captainhook
=================

v1.0.0(9y ago)320[1 issues](https://github.com/marvincaspar/CaptainHook/issues)MITShell

Since Nov 3Pushed 9y ago1 watchersCompare

[ Source](https://github.com/marvincaspar/CaptainHook)[ Packagist](https://packagist.org/packages/mc388/captainhook)[ RSS](/packages/mc388-captainhook/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (3)Used By (0)

CaptainHook
===========

[](#captainhook)

CaptainHook is a package which adds git hooks to your project.

Installation
------------

[](#installation)

To add this package to your project, run `composer require  mc388/captainhook`. In your `composer.json` you need to add the setup script:

```
"scripts": {
  "post-install-cmd": [
    "MarvinCaspar\\CaptainHook\\Hooks::install"
  ],
  "post-update-cmd": [
    "MarvinCaspar\\CaptainHook\\Hooks::install"
   ]
},

```

Hooks
-----

[](#hooks)

### commit-msg

[](#commit-msg)

This hooks validates the commit message by following \[ [http://chris.beams.io/posts/git-commit/\](these](http://chris.beams.io/posts/git-commit/](these) rules).

### pre-commit

[](#pre-commit)

This script requires different php tools to check your code.

#### Required

[](#required)

- phpcs
- phpmd
- phpunit

###  Health Score

27

—

LowBetter than 46% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Unknown

Total

1

Last Release

3571d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6b2d5b82ed993c9b0074f4aaf6d3b4aa2dad41ab76118118a4345660d6695684?d=identicon)[mc388](/maintainers/mc388)

---

Top Contributors

[![marvincaspar](https://avatars.githubusercontent.com/u/2600346?v=4)](https://github.com/marvincaspar "marvincaspar (8 commits)")

### Embed Badge

![Health badge](/badges/mc388-captainhook/health.svg)

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

###  Alternatives

[structuraphp/structura

Architectural testing for PHP

141.6k5](/packages/structuraphp-structura)

PHPackages © 2026

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