imaginationmedia/module-xml-validator
Composer 安装命令:
composer require imaginationmedia/module-xml-validator
包简介
Adds a console command for validating XML files against their configured schema
README 文档
README
XML Validator by Imagination Media is a development tool for Magento Open Source and Adobe Commerce that adds a console command for validating XML files against their configured schema.
Features & Benefits
- Ensure your XML files are valid according to their corresponding core schema thereby reducing deployment and runtime errors
Requirements
- Magento Open Source or Adobe Commerce version 2.4.4 or greater (version 2.4.5 or greater recommended)
- PHP version 7.4.32 or greater, or PHP 8.1.12 or greater (recommended)
Installation
The XML Validator extension is available for installation via Composer by entering the following commands into your terminal or command prompt:
cd /path/to/your/store
composer require --dev imaginationmedia/module-xml-validator
Post-Installation
After installation of the extension, you must run the following command to
patch your setup/src/Magento/Setup/Console/CommandList.php file. This will
allow the tool to run with only the core Magento files installed and no
database.
patch -p1 < vendor/imaginationmedia/module-xml-validator/patches/Add-validate-XML-command-to-Setup-Command-List.patch
Updating
To update the XML Validator extension using Composer, run these commands from your terminal or command prompt:
cd /path/to/your/store
composer update imaginationmedia/module-xml-validator
Post-Install or Post-Update
To complete the installation or update process, please run these commands:
cd /path/to/your/store
php bin/magento module:enable ImaginationMedia_XmlValidator
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
Usage
Command Line
Run this tool in your local environment with the following commands:
cd /path/to/your/store
bin/magento dev:xml:validate path/to/your/code
Arguments
| Argument | Description | Is Required |
|---|---|---|
| paths | One or more paths to validate XML files in | Yes |
CI/CD with GitHub Actions
This tool will automatically detect if it is being run in a Continuous Integration and Continuous Deployment (CI/CD) pipeline with GitHub Actions and output the statements needed to show warnings and errors inline with the affected code. Support for other CI/CD pipelines will be added in future releases.
Support
If you experience any issues or errors while using this extension, please open an issue in the GitHub repository. Be sure to include all relevant information, including a description of the issue or error, what you were doing when it occurred, what versions of Magento Open Source or Adobe Commerce and PHP are installed and any other pertinent details. Our support staff will do their best to respond to your request in a timely manner, typically within 24-48 business hours (Monday through Friday from 9:00AM—5:00PM U.S. Eastern Time, excluding holidays).
License
The source code contained in this extension is licensed under the Open Software License version 3.0 (OSL-3.0) license. A copy of this license can be found in the LICENSE file included with the source code or online at https://opensource.org/licenses/OSL-3.0.
Copyright for the included source code is exclusively held by Imagination Media, all rights reserved.
History
A full history of the extension can be found in the CHANGELOG.md file.
Contributing
We welcome and value your contribution. For more details on how you can help us improve and maintain this tool, please see the CONTRIBUTING.md file.
imaginationmedia/module-xml-validator 适用场景与选型建议
imaginationmedia/module-xml-validator 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 19.26k 次下载、GitHub Stars 达 5, 最近一次更新时间为 2022 年 11 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 imaginationmedia/module-xml-validator 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 imaginationmedia/module-xml-validator 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 19.26k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2022-11-08