定制 metadrop/grumphp-drupal-check 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

metadrop/grumphp-drupal-check

最新稳定版本:v0.4.0

Composer 安装命令:

composer require metadrop/grumphp-drupal-check

包简介

Execute drupal check in a grumphp task.

README 文档

README

This repository adds a task for GrumPHP that launchs drupal-check. During a commit check Drupal code for deprecations and discover bugs via static analysis. If a deprecated code is detected, it won't pass.

Installation

Install it using composer:

composer require --dev metadrop/grumphp-drupal-check

Usage

  1. Add the extension in your grumphp.yml file:
extensions: - GrumphpDrupalCheck\ExtensionLoader
  1. Add drupal check to the tasks:
tasks: drupalcheck: drupal_root: ~ memory_limit: ~ deprecations: true analysis: true php8: true 

Optionally, you can define multiple DrupalCheck arguments:

  • drupal_root (string): Configure the path to the Drupal root. This fallback option can be used if drupal-check could not identify Drupal root from the provided path(s). This is useful when testing a module as opposed to a Drupal installation.
  • memory_limit (string): Configure memory limit for the process.
  • deprecations (boolean): Check code for deprecations. By default it is true.
  • analysis (boolean): Check code analysis.
  • php8 (boolean): Set PHPStan phpVersion for 8.1 (Drupal 10 requirement).

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固