PHPackages                             vpodorozh/cli-construct-arg-auto-proxy-lib - 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. vpodorozh/cli-construct-arg-auto-proxy-lib

AbandonedArchivedLibrary

vpodorozh/cli-construct-arg-auto-proxy-lib
==========================================

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

1.0.0(3y ago)022PHP

Since Nov 2Pushed 3y ago1 watchersCompare

[ Source](https://github.com/vpodorozh/Cli-Constructor-Arg-Auto-Proxy-Lib)[ Packagist](https://packagist.org/packages/vpodorozh/cli-construct-arg-auto-proxy-lib)[ RSS](/packages/vpodorozh-cli-construct-arg-auto-proxy-lib/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (2)

Error in user YAML: (&lt;unknown&gt;): did not find expected key while parsing a block mapping at line 1 column 1

```
---
title: [library] Cli Constructor Arg Auto Proxy
keywords: CLI, Proxy, ObjectManager
author: Vlad Podorozhnyi
send_questions_to: vpodorozh@gmail.com | vlad.podorozhnyi@run-as-root.sh
category: System
---
```

[![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)[![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)

Part of [**CLI Constructor Arg Auto Proxy**](https://github.com/vpodorozh/CLI-Constructor-Arg-Auto-Proxy) project - follow the [ref](https://github.com/vpodorozh/CLI-Constructor-Arg-Auto-Proxy) to see project details.

**\[library\] Cli Constructor Arg Auto Proxy**
----------------------------------------------

[](#library-cli-constructor-arg-auto-proxy)

Features
--------

[](#features)

### Auto add proxies as arguments to CLI command classes

[](#auto-add-proxies-as-arguments-to-cli-command-classes)

Automatically injects Proxy for any argument defined in CLI command class constructor.
Entry point of functionality is based on DI config reader that is used in both cases - developer and production modes.

Technical Specification
-----------------------

[](#technical-specification)

### Plugins

[](#plugins)

#### `\Vpodorozh\CliConstructorArgAutoProxy\Plugin\Dom\EnrichCliConfigWithProxyPlugin`

[](#vpodorozhcliconstructorargautoproxyplugindomenrichcliconfigwithproxyplugin)

- responsible for enriching DI config with Proxies for CLI command constructor arguments;
- executed after DI config reading;
- plugin is executed in not trivial way - via preference on DOM config reader of DI (see section bellow for more details)
- Caller class: `\Vpodorozh\CliConstructorArgAutoProxy\Preference\Framework\ObjectManager\Config\Reader\Dom\Interceptor`

### Preferences

[](#preferences)

source-classcustom-classMagento\\Framework\\ObjectManager\\Config\\Reader\\Dom...\\Preference\\Framework\\ObjectManager\\Config\\Reader\\Dom\\Interceptor#### `\Vpodorozh\CliConstructorArgAutoProxy\Preference\Framework\ObjectManager\Config\Reader\Dom\Interceptor`

[](#vpodorozhcliconstructorargautoproxypreferenceframeworkobjectmanagerconfigreaderdominterceptor)

Workaround for plugin execution.
This override has the same purpose as regular Magento 2 Interceptors - hook for calling plugins.
It is not possible to define plugin over DOM config reader, as it is created before Magento plugin functionality starts. Preference is the only way to hook in.

### Services

[](#services)

#### `\Vpodorozh\CliConstructorArgAutoProxy\Service\EnrichCliConfigWithProxyService`

[](#vpodorozhcliconstructorargautoproxyserviceenrichcliconfigwithproxyservice)

Enrich provided DI config with proxies for CLI class commands only.

#### `\Vpodorozh\CliConstructorArgAutoProxy\Service\GetProxiedConstructArgsConfigService`

[](#vpodorozhcliconstructorargautoproxyservicegetproxiedconstructargsconfigservice)

Receives CLI command constructor arguments types and reformat them to Proxy types.
Using `IsClassEligibleForProxyValidator` to determine is class eligible to be Proxied.

### Validator

[](#validator)

#### `\Vpodorozh\CliConstructorArgAutoProxy\Validator\IsClassEligibleForProxyValidator`

[](#vpodorozhcliconstructorargautoproxyvalidatorisclasseligibleforproxyvalidator)

Check is Proxy applicable for this specific class.

### Mapper

[](#mapper)

#### `\Vpodorozh\CliConstructorArgAutoProxy\Mapper\ProxiedConstructArgsToDiConfigMapper`

[](#vpodorozhcliconstructorargautoproxymapperproxiedconstructargstodiconfigmapper)

Adds Proxy DI configs for specific CLI class command to DI configs pool.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity46

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

Unknown

Total

1

Last Release

1293d ago

### Community

Maintainers

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

---

Top Contributors

[![vpodorozh](https://avatars.githubusercontent.com/u/16047928?v=4)](https://github.com/vpodorozh "vpodorozh (5 commits)")

### Embed Badge

![Health badge](/badges/vpodorozh-cli-construct-arg-auto-proxy-lib/health.svg)

```
[![Health](https://phpackages.com/badges/vpodorozh-cli-construct-arg-auto-proxy-lib/health.svg)](https://phpackages.com/packages/vpodorozh-cli-construct-arg-auto-proxy-lib)
```

###  Alternatives

[fastly/magento2

Fastly CDN Module for Magento 2.4.x

1564.2M1](/packages/fastly-magento2)[mage-os/module-automatic-translation

Automatic AI content translation for Mage-OS.

277.1k](/packages/mage-os-module-automatic-translation)[zepgram/module-rest

Technical module to industrialize API REST call with dependency injection pattern using Guzzle library

1326.2k](/packages/zepgram-module-rest)[graycore/magento2-graphql-introspection-cache

1015.2k](/packages/graycore-magento2-graphql-introspection-cache)[mage-os/mageos-common-async-events

Send REST requests to external endpoints asynchronously. This module implements the most common events like order creation and customer change.

147.7k2](/packages/mage-os-mageos-common-async-events)[mage-os/module-inventory-reservations-grid

Add a grid with the list of inventory reservations.

126.8k](/packages/mage-os-module-inventory-reservations-grid)

PHPackages © 2026

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