PHPackages                             rugaard/git-hooks-workflow - 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. rugaard/git-hooks-workflow

ActiveGit-hook[Utility &amp; Helpers](/categories/utility)

rugaard/git-hooks-workflow
==========================

Workflow related Git hooks.

1.0.0(4y ago)02MITPHPPHP ^7.4|^8.0

Since Oct 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/rugaard/git-hooks-workflow)[ Packagist](https://packagist.org/packages/rugaard/git-hooks-workflow)[ Docs](https://github.com/rugaard)[ RSS](/packages/rugaard-git-hooks-workflow/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

🪝 Git Hooks for workflow [![GitHub Actions (tests)](https://github.com/rugaard/git-hooks-workflow/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/rugaard/git-hooks-workflow/actions/workflows/tests.yml)
================================================================================================================================================================================================================================

[](#-git-hooks-for-workflow-)

This is a "plugin" package which seamlessly integrates with the [Git Hooks](https://github.com/rugaard/git-hooks) package.

It will install `git` hooks, that will automatically run multiple checks on your project to make sure, they follow the projects workflow and naming conventions.

📦 Installation
--------------

[](#-installation)

You install the package via [Composer](https://getcomposer.org/) by using the following command:

```
composer require rugaard/git-hooks-workflow
```

📝 Configuration
---------------

[](#-configuration)

To change the default configuration of one or more script, you need to have a `git-hooks.config.json` file in your project root. If you don't, you can create it with the following command:

```
./vendor/bin/git-hooks config
```

### `Rugaard\GitHooks\Workflow\CommitMsg\IssueReferenceCommand`

[](#rugaardgithooksworkflowcommitmsgissuereferencecommand)

Checks the commit for an issue reference. Default is GitHub format.

If commit message does not contain an issue reference, the branch name will be checked to see, if an issue reference can be extracted.

ParameterDescriptionDefault`branchPattern`Regex pattern to search branch name for issue reference.`.*\/#?([0-9]+)-``commitPattern`Regex pattern to search commit message for issue reference.`#([0-9]+)``forcePrefix`Make sure issue reference is always prefixed with this value.`#`### `Rugaard\GitHooks\Workflow\PreCommit\BranchNameCommand`

[](#rugaardgithooksworkflowprecommitbranchnamecommand)

Checks the current branch name and make sure it follows the projects naming convention.

ParameterDescriptionDefault`pattern`Regex pattern to validate branch name`^(bugfix|feature|hotfix|release)\/(\d+)-([A-Za-z0-9-]+)$``renameExample`Format of branch naming convention`{type}/{issue-no}-{description}``whitelist`Array of branch names that skips this check.`['main', 'master', 'develop']`🚓 License
---------

[](#-license)

This package is licensed under [MIT](https://github.com/rugaard/git-hooks-github/blob/main/LICENSE).

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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

1716d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f1007ed23e51422c83de722371145b5bfcb0e57199befa00a441f734af903c77?d=identicon)[rugaard](/maintainers/rugaard)

---

Top Contributors

[![rugaard](https://avatars.githubusercontent.com/u/179868?v=4)](https://github.com/rugaard "rugaard (1 commits)")

---

Tags

plugincomposerworkflowgithookscomposer-plugingit-hooksrugaardmortenmorten rugaardworkflow git hooks

### Embed Badge

![Health badge](/badges/rugaard-git-hooks-workflow/health.svg)

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

###  Alternatives

[ergebnis/composer-normalize

Provides a composer plugin for normalizing composer.json.

1.1k41.4M2.8k](/packages/ergebnis-composer-normalize)[sllh/composer-lint

Extends the composer validate command with extra rules

15227.0k7](/packages/sllh-composer-lint)

PHPackages © 2026

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