PHPackages                             run\_as\_root/magento-cli-auto-proxy - 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. run\_as\_root/magento-cli-auto-proxy

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

run\_as\_root/magento-cli-auto-proxy
====================================

Makes all Magento CLI commands construct dependencies be injected as Proxy.

1.2.0(2y ago)3535.0k↓66.6%7[2 issues](https://github.com/run-as-root/magento-cli-auto-proxy/issues)MITPHPPHP ^7.4 | ^8CI failing

Since Nov 2Pushed 8mo ago3 watchersCompare

[ Source](https://github.com/run-as-root/magento-cli-auto-proxy)[ Packagist](https://packagist.org/packages/run_as_root/magento-cli-auto-proxy)[ RSS](/packages/run-as-root-magento-cli-auto-proxy/feed)WikiDiscussions main Synced 2w ago

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

[![Magento 2](https://camo.githubusercontent.com/49f2616bea714fd16b0c854e7151104b0f1997d914361af9753d8c512a9fc6ca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d6167656e746f2d322e342e2a2d6f72616e6765)](https://camo.githubusercontent.com/49f2616bea714fd16b0c854e7151104b0f1997d914361af9753d8c512a9fc6ca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d6167656e746f2d322e342e2a2d6f72616e6765)[![PHP](https://camo.githubusercontent.com/f926042f81dd7d172a33225776fde37f8ed90988a5ef05037cf9950c5483df22/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d372e342d626c7565)](https://camo.githubusercontent.com/f926042f81dd7d172a33225776fde37f8ed90988a5ef05037cf9950c5483df22/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d372e342d626c7565)[![PHP](https://camo.githubusercontent.com/ae30e2fcd70a281a3d0a65a2622626a27df5b5a640a72c1c2e167f81906def2f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e302d626c7565)](https://camo.githubusercontent.com/ae30e2fcd70a281a3d0a65a2622626a27df5b5a640a72c1c2e167f81906def2f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e302d626c7565)[![PHP](https://camo.githubusercontent.com/ac4fa9d93f3eac34f2430f72bbb7c54f7a132c91ca9112b2ba403aae0c3c8d72/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e312d626c7565)](https://camo.githubusercontent.com/ac4fa9d93f3eac34f2430f72bbb7c54f7a132c91ca9112b2ba403aae0c3c8d72/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e312d626c7565)[![PHP](https://camo.githubusercontent.com/edc2fe5e63944581d97b5f25f468b5b1b2cd71914b9e16836d9978609669d6b0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e322d626c7565)](https://camo.githubusercontent.com/edc2fe5e63944581d97b5f25f468b5b1b2cd71914b9e16836d9978609669d6b0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e322d626c7565)[![PHP](https://camo.githubusercontent.com/54b7804384d76a107e2ed3874a2715c33f236220aba6986869de4a3db326eb40/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e332d626c7565)](https://camo.githubusercontent.com/54b7804384d76a107e2ed3874a2715c33f236220aba6986869de4a3db326eb40/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e332d626c7565)[![composer](https://camo.githubusercontent.com/538258cf4137a499d276303f5b7215cc5bee723060f574bc8b67bacc8bb5753a/68747470733a2f2f736869656c64732e696f2f62616467652f636f6d706f7365722d76322d6461726b677265656e)](https://camo.githubusercontent.com/538258cf4137a499d276303f5b7215cc5bee723060f574bc8b67bacc8bb5753a/68747470733a2f2f736869656c64732e696f2f62616467652f636f6d706f7365722d76322d6461726b677265656e)[![packagist](https://camo.githubusercontent.com/9f61bff7719cacec675eec90200f0c05dc3f84ba378c753b39c7ce7bcf990cf9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d663238643161)](https://camo.githubusercontent.com/9f61bff7719cacec675eec90200f0c05dc3f84ba378c753b39c7ce7bcf990cf9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d663238643161)[![build](https://github.com/run-as-root/magento-cli-auto-proxy/actions/workflows/test_extension.yml/badge.svg)](https://github.com/run-as-root/magento-cli-auto-proxy/actions/workflows/test_extension.yml/badge.svg)

 [![Logo](images/logo.png)](images/logo.png)### Magento 2 - Auto Proxy to CLI class arguments

[](#magento-2---auto-proxy-to-cli-class-arguments)

 Automatically injects Proxy for any argument defined in CLI command class constructor.

About The Project
-----------------

[](#about-the-project)

### Purpose:

[](#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/magento` command execution;

Getting Started
---------------

[](#getting-started)

### Prerequisites

[](#prerequisites)

- Magento v2.4.\* and upper
- composer v2 and upper

### Structure

[](#structure)

- magento2-component - see [README.md](component/README.md)
- library - see [README.md](lib/README.md)

### Installation

[](#installation)

```
composer req run_as_root/magento-cli-auto-proxy:^1
```

Roadmap
-------

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

[](#license)

Distributed under the MIT License. See `LICENSE.txt` for more information.

Contact
-------

[](#contact)

[*Vlad Podorozhnyi*](https://github.com/vpodorozh)
Twitter: [![@vpodorozh](https://camo.githubusercontent.com/c6321215161fdb61a2ad236b656da543b4709241adec31d615c8185bc631bc92/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f75726c3f7374796c653d736f6369616c2675726c3d6874747073253341253246253246747769747465722e636f6d25324676706f646f726f7a68)](https://twitter.com/vpodorozh)
Email: `vpodorozh@gmail.com` | `vlad.podorozhnyi@run-as-root.sh`

[*run\_as\_root GmbH*](https://github.com/run-as-root) [![](https://avatars.githubusercontent.com/u/42740374?s=200&v=4)](https://avatars.githubusercontent.com/u/42740374?s=200&v=4)
Twitter: [![@run_as_root](https://camo.githubusercontent.com/4fe441ad3b00a9462ab0e98bc793d2e9e129b21ba67493ca1730931c72eb4d72/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f75726c3f7374796c653d736f6369616c2675726c3d6874747073253341253246253246747769747465722e636f6d25324672756e5f61735f726f6f74)](https://twitter.com/run_as_root)
Email: `info@run-as-root.sh`

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance41

Moderate activity, may be stable

Popularity40

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 73.2% 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 ~314 days

Total

3

Last Release

757d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f30c3b4c4281c9e771bd267d0086c4f56b2fde98ae2cf624dc2daeab1738ff15?d=identicon)[mwltr](/maintainers/mwltr)

![](https://www.gravatar.com/avatar/906aa6a77d4437e2a5eadc30ee504d17345690b7555dc3a6aedf3f5e51f0eaea?d=identicon)[DavidLambauer](/maintainers/DavidLambauer)

---

Top Contributors

[![vpodorozh](https://avatars.githubusercontent.com/u/16047928?v=4)](https://github.com/vpodorozh "vpodorozh (30 commits)")[![abramchukm](https://avatars.githubusercontent.com/u/45291553?v=4)](https://github.com/abramchukm "abramchukm (4 commits)")[![renttek](https://avatars.githubusercontent.com/u/1931090?v=4)](https://github.com/renttek "renttek (4 commits)")[![DavidLambauer](https://avatars.githubusercontent.com/u/1841317?v=4)](https://github.com/DavidLambauer "DavidLambauer (3 commits)")

---

Tags

magento2magento2-developer-toolsmagento2-extensionmagento2-extension-freemagento2-integration-tests

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/run-as-root-magento-cli-auto-proxy/health.svg)

```
[![Health](https://phpackages.com/badges/run-as-root-magento-cli-auto-proxy/health.svg)](https://phpackages.com/packages/run-as-root-magento-cli-auto-proxy)
```

###  Alternatives

[nosto/module-nostotagging

Increase your conversion rate and average order value by delivering your customers personalized product recommendations throughout their shopping journey.

27714.5k4](/packages/nosto-module-nostotagging)[fishpig/magento2-wordpress-integration

Securely integrate WordPress and Magento 2.

83374.7k7](/packages/fishpig-magento2-wordpress-integration)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

69362.0k](/packages/run-as-root-magento2-prometheus-exporter)[myparcelnl/magento

A Magento 2 module that creates MyParcel labels

1861.2k](/packages/myparcelnl-magento)[loki/magento2-components

Core module for defining Alpine.js components with advanced AJAX features

1015.1k29](/packages/loki-magento2-components)[mage-os/module-rma

Return Merchandise Authorization

229.1k](/packages/mage-os-module-rma)

PHPackages © 2026

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