PHPackages                             colours/codebeast - 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. colours/codebeast

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

colours/codebeast
=================

Composer package used to generate git hooks for automating code quality control

12.5kPHP

Since Jul 31Pushed 6y ago3 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

codebeast
=========

[](#codebeast)

Purpose
-------

[](#purpose)

Package is used to automate code quality control during the development process and git workflow. It installs dependencies such as: phpcs, phpcbf, phpmd and configures pre-commit git hook according to user preferences. Pre-commit git hook is executed right before the commit is created, thus the code, added to commit is checked against syntax errors, violation of code standards and violation of some structural standards (phpmd).

Usage
-----

[](#usage)

To configure git hook and generate settings file, use following command:

```
vendor/bin/codebeast configure

```

Configure command generates pre-commit.settings file, which can be added to the repository, so every team member have the same settings within the project. Configure command also suggest to install the hook.

To install the hook follow the wizard of 'configure' command or run following:

```
vendor/bin/codebeast install

```

Install command sets the path (absolute) to your vendor folder and creates pre-commit hook file in target .git directory.

Configuration
-------------

[](#configuration)

Package is shipped with phpmd configuration in [minimal.xml](https://github.com/colours/codebeast/blob/master/src/Tools/MD/Config/minimal.xml) file. You can use your own phpmd config, by creating settings file according to [documentation](https://phpmd.org/documentation/creating-a-ruleset.html). Rest of the configuration is done as a part of the wizard process during 'configure' command execution.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e7b23946b8b87e90c8b2c75b452b81283f6ea16857ad735ed2054de6769a1a7?d=identicon)[wdrupal](/maintainers/wdrupal)

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

![](https://www.gravatar.com/avatar/80bb383b58f3ae1a6839b1fabb9f46fdcd0b737d4dae046b9d3247af49967a09?d=identicon)[aposudevsky](/maintainers/aposudevsky)

### Embed Badge

![Health badge](/badges/colours-codebeast/health.svg)

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

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

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