PHPackages                             johnatas-x/grumphp-mago - 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. [CLI &amp; Console](/categories/cli)
4. /
5. johnatas-x/grumphp-mago

ActiveLibrary[CLI &amp; Console](/categories/cli)

johnatas-x/grumphp-mago
=======================

Execute Mago in a GrumPHP task.

2.21.1(2w ago)0101↑150%[1 issues](https://github.com/johnatas-x/grumphp-mago/issues)PHP

Since Apr 29Pushed 4d agoCompare

[ Source](https://github.com/johnatas-x/grumphp-mago)[ Packagist](https://packagist.org/packages/johnatas-x/grumphp-mago)[ Docs](https://github.com/johnatas-x/grumphp-mago)[ RSS](/packages/johnatas-x-grumphp-mago/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (9)Dependencies (2)Versions (10)Used By (0)

Important

This extension is temporary.

It allows using Mago with GrumPHP in a simple (though somewhat unconventional) way while waiting for the merge of [this PR](https://github.com/phpro/grumphp/pull/1216) into a release.

Once that happens, this extension will become outdated.

Description
===========

[](#description)

This repository adds a task for GrumPHP that launches [mago](https://github.com/carthage-software/mago). During a commit check for PHP improvements. If a tool fails, it won't pass.

Installation
============

[](#installation)

Install it using composer:

`composer require --dev johnatas-x/grumphp-mago`

Usage
=====

[](#usage)

1. Add the extension in your grumphp.yml file:

```
extensions:
  - GrumphpMago\ExtensionLoader
```

2. Add mago to the tasks (the example below shows default values):

```
tasks:
  mago:
    formatter: true
    formatter_options: ['--staged']
    linter: true
    linter_options: ['--staged']
    analyzer: true
    analyzer_options: ['--staged']
    guard: false
    guard_options: []

```

- **formatter** (bool): Enable the formatter tool.
- **formatter\_options** (array): List of options to pass to the formatter tool.
- **linter** (bool): Enable the linter tool.
- **linter\_options** (array): List of options to pass to the linter tool.
- **analyzer** (bool): Enable the analyzer tool.
- **analyzer\_options** (array): List of options to pass to the analyzer tool.
- **guard** (bool): Enable the architectural guard tool.
- **guard\_options** (array): List of options to pass to the architectural guard tool.

Caution

You must have the mago [configuration file](https://mago.carthage.software/guide/configuration#configuration-file-discovery) in your project.

The paths must be defined in the configuration file.

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance98

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 63.2% 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 ~3 days

Total

8

Last Release

15d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fb82429ffeb7556ffee9014525e0ba5d3a32cf3a525d6a5e48135ccd50626925?d=identicon)[johnatas-x](/maintainers/johnatas-x)

---

Top Contributors

[![johnatas-x](https://avatars.githubusercontent.com/u/34005481?v=4)](https://github.com/johnatas-x "johnatas-x (12 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (7 commits)")

### Embed Badge

![Health badge](/badges/johnatas-x-grumphp-mago/health.svg)

```
[![Health](https://phpackages.com/badges/johnatas-x-grumphp-mago/health.svg)](https://phpackages.com/packages/johnatas-x-grumphp-mago)
```

###  Alternatives

[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24726.4M22](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

13045.3M6.1k](/packages/illuminate-console)

PHPackages © 2026

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