johnatas-x/grumphp-mago

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (2.21.3) of this package.

Execute Mago in a GrumPHP task.

Maintainers

Package info

github.com/johnatas-x/grumphp-mago

pkg:composer/johnatas-x/grumphp-mago

Transparency log

Statistics

Installs: 140

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 1

2.21.3 2026-06-25 06:46 UTC

This package is auto-updated.

Last update: 2026-07-25 14:03:55 UTC


README

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 into a release.

Once that happens, this extension will become outdated.

Description

This repository adds a task for GrumPHP that launches mago. During a commit check for PHP improvements. If a tool fails, it won't pass.

Installation

Install it using composer:

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

Usage

  1. Add the extension in your grumphp.yml file:
extensions:
  - GrumphpMago\ExtensionLoader
  1. 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 in your project.

The paths must be defined in the configuration file.