PHPackages                             sashas777/plugin-composer - 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. sashas777/plugin-composer

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

sashas777/plugin-composer
=========================

Composer-Plugin handling your git-hooks

4.0.0.1(6y ago)0349MITPHPPHP ^7.1

Since Nov 26Pushed 6y agoCompare

[ Source](https://github.com/sashas777/plugin-composer)[ Packagist](https://packagist.org/packages/sashas777/plugin-composer)[ RSS](/packages/sashas777-plugin-composer/feed)WikiDiscussions fluffy\_hedgehog Synced 2w ago

READMEChangelog (1)Dependencies (3)Versions (5)Used By (0)

Composer-Plugin for [CaptainHook](https://github.com/captainhookphp/captainhook)
================================================================================

[](#composer-plugin-for-captainhook)

This is a composer-plugin that installs *CaptainHook* and the corresponding git hooks. For more information visit its [Website](https://github.com/captainhookphp/captainhook).

[![Latest Stable Version](https://camo.githubusercontent.com/db9d04d542f9042e6de2637fa8efc9d298b228698846a840093620e7054c198b/68747470733a2f2f706f7365722e707567782e6f72672f6361707461696e686f6f6b2f706c7567696e2d636f6d706f7365722f762f737461626c652e7376673f763d31)](https://packagist.org/packages/captainhook/plugin-composer)[![Minimum PHP Version](https://camo.githubusercontent.com/824c5c4ccb56537db3b3b53bb43d7b8edc6286f3b3d1705525e0821dfd22d27e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e312d3838393242462e737667)](https://php.net/)[![Downloads](https://camo.githubusercontent.com/3ff277dc2428880955babd0bf7d3b4cd74a7225e5c5dc7010a6cf70c616ed48e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6361707461696e686f6f6b2f706c7567696e2d636f6d706f7365722e7376673f7631)](https://packagist.org/packages/captainhook/plugin-composer)[![License](https://camo.githubusercontent.com/3e0c6fe67803ba86a71b1c2d19a2710f5638bffaaec404b552367db030caba7f/68747470733a2f2f706f7365722e707567782e6f72672f6361707461696e686f6f6b2f706c7567696e2d636f6d706f7365722f6c6963656e73652e7376673f763d31)](https://packagist.org/packages/captainhook/plugin-composer)

Installation:
-------------

[](#installation)

As this is a composer-plugin the preferred method is to use composer for installation.

```
$ composer require --dev captainhook/plugin-composer
```

Everything else will happen automagically.

Customize
---------

[](#customize)

You can set a custom name for your hook configuration and a custom path to your .git directory if it is not located in the same directory as your *composer.json* file. Just add these values to your *composer.json* in the *extra* section first.

```
{
  "extra": {
    "captainhook-config": "hooks.json",
    "captainhook-git-dir": "../.git"
  }

}
```

If you want to see the installation in action have a look at this short installation video.

[![Install demo](https://camo.githubusercontent.com/c6e1d9ac97471e3c6efe5f766b661c4d904136c325f100b0500a41eb825ac9cb/687474703a2f2f696d672e796f75747562652e636f6d2f76692f616777545a306a684444732f302e6a7067)](https://www.youtube.com/watch?v=agwTZ0jhDDs)

A word of warning
-----------------

[](#a-word-of-warning)

It is still possible to commit without invoking the hooks. So make sure you run appropriate backend-sanity checks on your code!

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 69% 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 ~87 days

Total

4

Last Release

2509d ago

Major Versions

1.0.0 → 3.0.02018-11-26

3.0.0 → 4.0.02019-01-10

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1823670?v=4)[sashas](/maintainers/sashas)[@sashas](https://github.com/sashas)

---

Top Contributors

[![sebastianfeldmann](https://avatars.githubusercontent.com/u/9250358?v=4)](https://github.com/sebastianfeldmann "sebastianfeldmann (20 commits)")[![be-heiglandreas](https://avatars.githubusercontent.com/u/60882198?v=4)](https://github.com/be-heiglandreas "be-heiglandreas (7 commits)")[![heiglandreas](https://avatars.githubusercontent.com/u/91998?v=4)](https://github.com/heiglandreas "heiglandreas (1 commits)")[![sashas777](https://avatars.githubusercontent.com/u/6912470?v=4)](https://github.com/sashas777 "sashas777 (1 commits)")

### Embed Badge

![Health badge](/badges/sashas777-plugin-composer/health.svg)

```
[![Health](https://phpackages.com/badges/sashas777-plugin-composer/health.svg)](https://phpackages.com/packages/sashas777-plugin-composer)
```

###  Alternatives

[symfony/runtime

Enables decoupling PHP applications from global state

74794.9M939](/packages/symfony-runtime)[ergebnis/composer-normalize

Provides a composer plugin for normalizing composer.json.

1.1k40.0M2.6k](/packages/ergebnis-composer-normalize)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5344.1M526](/packages/drupal-core-composer-scaffold)[drupal/core-project-message

Adds a message after Composer installation.

2124.0M193](/packages/drupal-core-project-message)[sandersander/composer-link

Adds ability to link local packages for development with composer

94441.4k](/packages/sandersander-composer-link)[phpro/grumphp-shim

GrumPHP Phar distribution

284.6M333](/packages/phpro-grumphp-shim)

PHPackages © 2026

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