Yireo_ExtensionValidationTools

PHP 8.1 - 8.4
Magento 2.4.7 | 2.4.8
CSP Yes

This extension validates the code of other extensions and is complementary to static code analysis tools like PHPCS.

Example 1: Comparing composer versions

bin/magento extension:validate:version_match /path/to/your/extension/composer.json

This command allows you to scan a given composer.json of some extension, without that extension being installed. This allows you to modify the dependencies of that extension, before trying to install the extension (which could save valuable time).

The output should be empty to be successful. When unmatched versions are found, it might look like the following:

ERROR: "magento/framework:103.0.0" does not match required version "^100.1|^101.0|^102.0"

Example 3: Creating unit tests (@todo: Move this to another module

bin/magento extension:validate:generate-unit-test --module Yireo_Webp2 --class '\Yireo\Webp2\Convertor\Convertor'
WARNING: This module has no releases yet. If you want to use it, make sure to add the version @dev to the composer command.

Support

For getting support, create an Issue under the following project URL:

https://github.com/yireo/Yireo_ExtensionValidationTools

Composer details
Magento module name
Yireo_ExtensionValidationTools
Composer name
yireo/magento2-extension-validation-tools
Composer version
No release yet
Default branch
master
Requirements
magento/framework: *
yireo/magento2-extensionchecker: *
Releases
Changelog No changelog available

Last modified: October 17, 2026