定制 lbajsarowicz/module-config-validator 二次开发

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

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

lbajsarowicz/module-config-validator

最新稳定版本:1.0.2

Composer 安装命令:

composer require lbajsarowicz/module-config-validator

包简介

N/A

README 文档

README

The module answers one of the most common mistakes made when maintaining Magento 2 projects.

Outdated config.php file in the repository leads to serious issues with environment consistency after the deployment.

When your Deployment Configuration is not in line with the codebase, exit code is 1 (ERROR)

Installation

composer require lbajsarowicz/module-config-validator

Module does not require Magento initialization, so you can install it either as require or require-dev without any issues.

Usage Examples

CLI

bin/magento setup:config:validate

# There is also verbose version:
bin/magento setup:config:validate -v
# Contents of `config.php` is not up to date
# Modules should be removed from `config.php`: LBajsarowicz_Example
# Modules missing from `config.php`: Magento_Amqp

Github Workflow

name: Pull Request
on: pull_request
jobs:
  # Verify whether Project can be built
  qa:
    name: Pull Request validations
    runs-on: self-hosted
    container:
      image: docker.io/wardenenv/php-fpm:8.2-magento2
    env:
      COMPOSER_AUTH: "${{ secrets.COMPOSER_AUTH }}"
    steps:
      - name: Clone repository to build
        uses: actions/checkout@v4
      - name: Install Composer Dependencies
        run: "composer2 install --no-interaction --no-progress --no-dev --prefer-dist"
      - name: Verify 'config.php'
        run: bin/magento setup:config:validate -v

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0-only
  • 更新时间: 2025-03-13