PHPackages                             fourtekit/laragrum - 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. fourtekit/laragrum

ActiveComposer-plugin[Testing &amp; Quality](/categories/testing)

fourtekit/laragrum
==================

A composer plugin for laravel that enables source code quality checks.

06PHPCI failing

Since Aug 28Pushed 7y ago2 watchersCompare

[ Source](https://github.com/FourtekIT/laraGrum)[ Packagist](https://packagist.org/packages/fourtekit/laragrum)[ RSS](/packages/fourtekit-laragrum/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

LaraGrum
========

[](#laragrum)

This is purely inspired by GrumPHP. this is only a wrapper over original GrumPHP
--------------------------------------------------------------------------------

[](#this-is-purely-inspired-by-grumphp-this-is-only-a-wrapper-over-original-grumphp)

[![](https://raw.githubusercontent.com/phpro/grumphp/master/resources/logo/grumphp-grumpy.png)](https://raw.githubusercontent.com/phpro/grumphp/master/resources/logo/grumphp-grumpy.png)

Sick and tired of defending code quality over and over again? GrumPHP will do it for you! This composer plugin will register some git hooks in your package repository. When somebody commits changes, GrumPHP will run some tests on the committed code. If the tests fail, you won't be able to commit your changes. This handy tool will not only improve your codebase, it will also teach your co-workers to write better code following the best practices you've determined as a team.

GrumPHP has a set of common tasks built-in. You will be able to use GrumPHP with a minimum of configuration.

We don't want to bore you with all the details, so quick: install it yourself and unleash the power of GrumPHP!

Demo
----

[](#demo)

[![demo](https://github.com/phpro/grumphp/wiki/images/demo.gif)](https://github.com/phpro/grumphp/wiki/images/demo.gif)

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

[](#installation)

*If you are trying to install GrumPHP on Windows: please read the windows pre-install section.*

This package is a composer plugin and should be installed to your project's dev dependency using composer:

```
composer require --dev FourtekIt/laraGrum
```

When the package is installed, GrumPHP will attach itself to the git hooks of your project. You will see following message in the composer logs:

*Watch out! GrumPHP is sniffing your commits!*

GrumPHP will never push you into using a specific task. You can choose the tasks that fit your needs, and activate or deactivate any task in no time! See the `suggest` section in [composer.json](https://github.com/phpro/grumphp/blob/master/composer.json#L37).

Note: GrumPHP will overwrite existing hooks unless you run `composer install` with `--no-plugins` or `--no-scripts`. Be sure to backup your hooks before you try to install GrumPHP.

Having trouble installing GrumPHP? Find out how to:

- [Install globally](doc/installation/global.md)
- [Install with an exotic project structure](doc/installation/exotic.md)
- [Install on Windows](doc/installation/windows.md)

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

[](#configuration)

Some things in GrumPHP can be configured in a `grumphp.yml` or `grumphp.yml.dist` file in the root of your project (the directory where you run the grumphp command). You can specify a custom config filename and location in `composer.json` or in the `--config` option of the console commands.

```
# grumphp.yml
parameters:
    bin_dir: "./vendor/bin"
    git_dir: "."
    hooks_dir: ~
    hooks_preset: local
    stop_on_failure: false
    ignore_unstaged_changes: false
    hide_circumvention_tip: false
    process_async_limit: 10
    process_async_wait: 1000
    process_timeout: 60
    ascii:
        failed: grumphp-grumpy.txt
        succeeded: grumphp-happy.txt
    tasks:
        ant: ~
        atoum: ~
        behat: ~
        brunch: ~
        clover_coverage: ~
        codeception: ~
        composer: ~
        composer_require_checker: ~
        composer_script: ~
        deptrac: ~
        doctrine_orm: ~
        file_size: ~
        gherkin: ~
        git_blacklist: ~
        git_branch_name: ~
        git_commit_message: ~
        grunt: ~
        gulp: ~
        infection: ~
        jsonlint: ~
        kahlan: ~
        make: ~
        npm_script: ~
        phan: ~
        phing: ~
        php7cc: ~
        phpcpd: ~
        phpcs: ~
        phpcsfixer: ~
        phpcsfixer2: ~
        phplint: ~
        phpmd: ~
        phpmnd: ~
        phpparser: ~
        phpspec: ~
        phpstan: ~
        phpunit: ~
        phpversion: ~
        progpilot: ~
        psalm: ~
        robo: ~
        securitychecker: ~
        shell: ~
        xmllint: ~
        yamllint: ~
    testsuites: []
    extensions: []
```

Details of the configuration are broken down into the following sections.

- [Parameters](doc/parameters.md) – Configuration settings for GrumPHP itself.
- [Tasks](doc/tasks.md) – External tasks performing code validation and their respective configurations.
- [TestSuites](doc/testsuites.md)
- [Extensions](doc/extensions.md)
- [Events](doc/events.md)
- [Conventions checker](doc/conventions.md)

Commands
--------

[](#commands)

Since GrumPHP is just a CLI tool, these commands can be triggered:

- [configure](doc/commands.md#installation)
- [git:init](doc/commands.md#installation)
- [git:deinit](doc/commands.md#installation)
- [git:pre-commit](doc/commands.md#git-hooks)
- [git:commit-msg](doc/commands.md#git-hooks)
- [run](doc/commands.md#run)

Compatibility
-------------

[](#compatibility)

GrumPHP works with PHP 5.6 or above.

This package has been tested with following git clients:

- CLI Unix
- CLI Mac
- CLI Windows
- PhpStorm Git
- Atlassian SourceTree
- Syntevo SmartGit

Roadmap
-------

[](#roadmap)

Lots of tasks are already available to make sure your team writes great code. There is one major part missing before we can release v1.0.0:

- [A PHAR executable](https://github.com/phpro//grumphp/issues/61)

We are always looking to support new tasks. Feel free to log an issue or create a pull request for a task we forgot.

Are you missing a feature or did you find a bug? Log it in the [issue tracker](https://github.com/phpro/grumphp/issues)! Want to help out? Feel free to contact us!

Solving issues
--------------

[](#solving-issues)

- [GrumPHP does not work with submodules](doc/issues/grumphp-is-not-working-with-submodules.md)

FAQ
---

[](#faq)

- [FAQ](doc/faq.md)

About
-----

[](#about)

### Submitting bugs and feature requests

[](#submitting-bugs-and-feature-requests)

Bugs and feature request are tracked on [GitHub](https://github.com/phpro/grumphp/issues). Please take a look at our rules before [contributing your code](CONTRIBUTING.md).

### License

[](#license)

GrumPHP is licensed under the [MIT License](LICENSE).

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.3% 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.

### Community

Maintainers

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

---

Top Contributors

[![veewee](https://avatars.githubusercontent.com/u/1618158?v=4)](https://github.com/veewee "veewee (589 commits)")[![Landerstraeten](https://avatars.githubusercontent.com/u/5587595?v=4)](https://github.com/Landerstraeten "Landerstraeten (33 commits)")[![Kanti](https://avatars.githubusercontent.com/u/471387?v=4)](https://github.com/Kanti "Kanti (30 commits)")[![Bilge](https://avatars.githubusercontent.com/u/470626?v=4)](https://github.com/Bilge "Bilge (30 commits)")[![UrGuardian4ngel](https://avatars.githubusercontent.com/u/3755487?v=4)](https://github.com/UrGuardian4ngel "UrGuardian4ngel (27 commits)")[![jyggen](https://avatars.githubusercontent.com/u/264300?v=4)](https://github.com/jyggen "jyggen (23 commits)")[![aaa2000](https://avatars.githubusercontent.com/u/163941?v=4)](https://github.com/aaa2000 "aaa2000 (20 commits)")[![aderuwe](https://avatars.githubusercontent.com/u/1125184?v=4)](https://github.com/aderuwe "aderuwe (20 commits)")[![igormukhingmailcom](https://avatars.githubusercontent.com/u/6544038?v=4)](https://github.com/igormukhingmailcom "igormukhingmailcom (14 commits)")[![mgeoffray](https://avatars.githubusercontent.com/u/1154299?v=4)](https://github.com/mgeoffray "mgeoffray (13 commits)")[![cafferata](https://avatars.githubusercontent.com/u/1150425?v=4)](https://github.com/cafferata "cafferata (11 commits)")[![bertptrs](https://avatars.githubusercontent.com/u/861864?v=4)](https://github.com/bertptrs "bertptrs (8 commits)")[![lykciv](https://avatars.githubusercontent.com/u/3390098?v=4)](https://github.com/lykciv "lykciv (7 commits)")[![Devolicious](https://avatars.githubusercontent.com/u/360302?v=4)](https://github.com/Devolicious "Devolicious (6 commits)")[![klipach](https://avatars.githubusercontent.com/u/1453641?v=4)](https://github.com/klipach "klipach (5 commits)")[![keradus](https://avatars.githubusercontent.com/u/2716794?v=4)](https://github.com/keradus "keradus (5 commits)")[![llaville](https://avatars.githubusercontent.com/u/364342?v=4)](https://github.com/llaville "llaville (5 commits)")[![pwassermann](https://avatars.githubusercontent.com/u/166525143?v=4)](https://github.com/pwassermann "pwassermann (4 commits)")[![tombevers](https://avatars.githubusercontent.com/u/145226?v=4)](https://github.com/tombevers "tombevers (4 commits)")[![adam-paterson](https://avatars.githubusercontent.com/u/1008727?v=4)](https://github.com/adam-paterson "adam-paterson (4 commits)")

### Embed Badge

![Health badge](/badges/fourtekit-laragrum/health.svg)

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

###  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)
