PHPackages                             imaginationmedia/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. imaginationmedia/module-xml-validator

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

imaginationmedia/module-xml-validator
=====================================

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

0.2.1(3y ago)518.0k↓47.8%OSL-3.0PHPPHP ^7.4 || ^8.0

Since Oct 31Pushed 3y ago2 watchersCompare

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

READMEChangelog (3)Dependencies (13)Versions (5)Used By (0)

XML Validator by Imagination Media
==================================

[](#xml-validator-by-imagination-media)

XML Validator by [Imagination Media](https://www.imaginationmedia.com/) 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 imaginationmedia/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/imaginationmedia/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 imaginationmedia/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 ImaginationMedia_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/Imagination-Media/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. 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
-------

[](#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 [Imagination Media](https://www.imaginationmedia.com/), 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

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

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/ba4717066272b685269252b40d37f3dbe3114cf008e7af57fe71d6b0c77268c1?d=identicon)[igor-imaginemage](/maintainers/igor-imaginemage)

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

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.4k187.2M2.6k](/packages/composer-composer)[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[roave/backward-compatibility-check

Tool to compare two revisions of a public API to check for BC breaks

5953.3M56](/packages/roave-backward-compatibility-check)[coenjacobs/mozart

Composes all dependencies as a package inside a WordPress plugin

4723.6M20](/packages/coenjacobs-mozart)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)

PHPackages © 2026

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