PHPackages                             joseph-leedy/module-xml-validator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. joseph-leedy/module-xml-validator

ActiveMagento2-module[Validation &amp; Sanitization](/categories/validation)

joseph-leedy/module-xml-validator
=================================

Adds a console command for validating XML files against their configured schema

0.2.1(3y ago)66191[1 issues](https://github.com/JosephLeedy/magento-module-xml-validator/issues)OSL-3.0PHPPHP ^7.4 || ^8.0

Since Oct 31Pushed 2y agoCompare

[ Source](https://github.com/JosephLeedy/magento-module-xml-validator)[ Packagist](https://packagist.org/packages/joseph-leedy/module-xml-validator)[ RSS](/packages/joseph-leedy-module-xml-validator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (13)Versions (5)Used By (0)

XML Validator by Joseph Leedy
=============================

[](#xml-validator-by-joseph-leedy)

XML Validator by Joseph Leedy 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 &amp; Benefits
-----------------------

[](#features--benefits)

- Ensure your XML files are valid according to their corresponding core schema thereby reducing deployment and runtime errors

Requirements
------------

[](#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
------------

[](#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 joseph-leedy/module-xml-validator

```

### Post-Installation

[](#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/joseph-leedy/module-xml-validator/patches/Add-validate-XML-command-to-Setup-Command-List.patch

```

Updating
--------

[](#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 joseph-leedy/module-xml-validator

```

Post-Install or Post-Update
---------------------------

[](#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 JosephLeedy_XmlValidator
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy

```

Usage
-----

[](#usage)

### Command Line

[](#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

[](#arguments)

ArgumentDescriptionIs RequiredpathsOne or more paths to validate XML files inYes### CI/CD with GitHub Actions

[](#cicd-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
-------

[](#support)

If you experience any issues or errors while using this extension, please [open an issue](https://github.com/JosephLeedy/magento-module-xml-validator/issues/new) 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. I will do my 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
-------

[](#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](./LICENSE) file included with the source code or online at .

Copyright for the included source code is exclusively held by Joseph Leedy, all rights reserved.

History
-------

[](#history)

A full history of the extension can be found in the [CHANGELOG.md](./CHANGELOG.md) file.

Contributing
------------

[](#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](./CONTRIBUTING.md) file.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~8 days

Total

3

Last Release

1278d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8d8c74cbdad96d6e82dff81532a5c2f5aa2440ab57d102de9d6ee770fb49f001?d=identicon)[JosephLeedy](/maintainers/JosephLeedy)

---

Top Contributors

[![JosephLeedy](https://avatars.githubusercontent.com/u/3091468?v=4)](https://github.com/JosephLeedy "JosephLeedy (3 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/joseph-leedy-module-xml-validator/health.svg)

```
[![Health](https://phpackages.com/badges/joseph-leedy-module-xml-validator/health.svg)](https://phpackages.com/packages/joseph-leedy-module-xml-validator)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[magento/magento2-functional-testing-framework

Magento2 Functional Testing Framework

15511.5M30](/packages/magento-magento2-functional-testing-framework)[ssch/typo3-rector

Instant fixes for your TYPO3 PHP code by using Rector.

2592.8M263](/packages/ssch-typo3-rector)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[jolicode/castor

A lightweight and modern task runner. Automate everything. In PHP.

53541.0k3](/packages/jolicode-castor)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
