承接 sicse/quality-assurance 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

sicse/quality-assurance

Composer 安装命令:

composer require sicse/quality-assurance

包简介

Shared configuration and tools for automated code quality checks, standards enforcement, and best practices across Drupal projects.

README 文档

README

CI codecov Latest Stable Version Total Downloads License

A Composer plugin and configuration package for Drupal projects, designed to enforce code quality, coding standards, and best practices automatically. Ideal for agencies, maintainers, and teams seeking consistent code review automation and integration with industry-standard PHP tools.

Requirements

  • PHP 8.3 or higher
  • Composer 2.6+
  • Compatible with Drupal 10 and 11

Installation

Require the package as a development dependency:

composer require sicse/quality-assurance --dev

When prompted by Composer to allow plugins, approve the following recommended plugins to ensure full functionality:

  • phpro/grumphp-shim
  • phpstan/extension-installer
  • ergebnis/composer-normalize
  • dealerdirect/phpcodesniffer-composer-installer
  • sicse/quality-assurance

When you install this plugin, the GrumPHP package is also installed automatically. During installation, you will be prompted whether you want to add a grumphp.yml configuration file to your project. When you decline, this plugin will ask if you want to use the default configuration provided by this package (i.e., config/grumphp.yml).

If you set the GrumPHP config-default-path to the default configuration provided by this package (located in the config folder), that configuration will take precedence over your custom grumphp.yml file. To use your own configuration, do not set config-default-path to the package's default config.

Features

  • Out-of-the-box GrumPHP integration: code quality checks run automatically on Git commits
  • Integration with industry-standard tools:
    • PHP_CodeSniffer: checks code style and enforces Drupal and DrupalPractices standards
    • PHPStan: performs static analysis to find bugs and improve code quality
    • Twig CS Fixer: enforces coding standards for Twig template files
    • Rector: automates code refactoring and upgrades for PHP and Drupal
    • And more

Usage

After installation and enabling the integration, GrumPHP is automatically configured. Code quality checks will run on every Git commit. You can also run them manually:

vendor/bin/grumphp run

Note: if you have added your own grumphp.yml, make sure not to set the config-default-path to the GrumPHP configuration file provided by this package.

Custom Configuration (Optional)

Custom configuration is only needed if your project has different requirements. You can extend or override the default configuration by creating your own grumphp.yml or rector.php in your project root.

For example:

# grumphp.yml
imports:
  - { resource: vendor/sicse/quality-assurance/config/grumphp.yml }
parameters:
  convention.phpstan_level: 8

If you provide your own grumphp.yml, do not set the GrumPHP config-default-path to the package's default config.

When providing your own rector.php, make sure to update the convention.rector_config parameter in your grumphp.yml accordingly.

Contributing

Contributions are welcome! Please open issues or submit pull requests via GitHub.

License

GPL-2.0-or-later. See the LICENSE file for details.

sicse/quality-assurance 适用场景与选型建议

sicse/quality-assurance 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 57 次下载、GitHub Stars 达 1, 最近一次更新时间为 2025 年 08 月 03 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 sicse/quality-assurance 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 sicse/quality-assurance 我们能提供哪些服务?
定制开发 / 二次开发

基于 sicse/quality-assurance 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2025-08-03