johnatas-x/grumphp-mago 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

johnatas-x/grumphp-mago

Composer 安装命令:

composer require johnatas-x/grumphp-mago

包简介

Execute Mago in a GrumPHP task.

README 文档

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.

统计信息

  • 总下载量: 140
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2026-04-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固