run_as_root / magento-cli-auto-proxy
run_as_root/magento-cli-auto-proxy
Makes all Magento CLI commands construct dependencies be injected as Proxy.
Magento 2 - Auto Proxy to CLI class arguments
Automatically injects Proxy for any argument defined in CLI command class constructor.
About The Project
Purpose:
- eliminate issues while installation of your project with a fresh database (usually used with integration tests) - caused by not using Proxy in CLI of 3rd parties:
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'magento2.flag' doesn't exist, query was: SELECT flag.* FROM flag WHERE (flag.flag_code='staging') - speed up
php bin/magentocommand execution;
Getting Started
Prerequisites
- Magento v2.4.* and upper
- composer v2 and upper
Structure
Installation
composer req run_as_root/magento-cli-auto-proxy:^1
Roadmap
- MVP release
- Documentation
- PHP 8 support
- Unit tests coverage
- Static tests coverage
- php linting
- phpcs
- phpmd
- phpstan
- Integration tests coverage
- Pipelines tests automation
- Static tests
- Unit tests
- Integration tests
- Magento multiversions tests
License
Distributed under the MIT License. See LICENSE.txt for more information.
Contact
Vlad Podorozhnyi
Twitter:
Email: [email protected] | [email protected]
run_as_root GmbH
Twitter:
Email: [email protected]
No changelog yet
The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.
Requires 2
| Package | Constraint |
|---|---|
| php | ^7.4 | ^8 |
| magento/framework | >=102.0.7 |
Requires-dev 5
| Package | Constraint |
|---|---|
| roave/security-advisories | dev-latest |
| squizlabs/php_codesniffer | ^3.7 |
| phpcompatibility/php-compatibility | ^9.3 |
| phpstan/phpstan | ^1.9 |
| phpunit/phpunit | >9 |
Compatibility
Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.
Code Quality
Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge — a phpcs finding can't make a module incompatible.
Static analysis
Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.
PHPStan
Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases. Cell → details modal.
Tests
Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.
Unit tests
Integration tests
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | ||
| 2.4.8 | N/A | N/A | ||
| 2.4.9 | N/A | N/A |
Security
Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.
More from run_as_root
View vendorTurn an existing module into recurring revenue.
If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.