PHPackages                             thomasvargiu/proxy-manager-module - 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. thomasvargiu/proxy-manager-module

AbandonedLibrary[Utility &amp; Helpers](/categories/utility)

thomasvargiu/proxy-manager-module
=================================

A ZF2 module which allows to configure and use Ocramius/ProxyManager via ServiceManager

1.0.0(11y ago)01.5kMITPHPPHP &gt;=5.4

Since Feb 22Pushed 10y ago1 watchersCompare

[ Source](https://github.com/thomasvargiu/ProxyManagerModule)[ Packagist](https://packagist.org/packages/thomasvargiu/proxy-manager-module)[ Docs](https://github.com/thomasvargiu/ProxyManagerModule)[ RSS](/packages/thomasvargiu-proxy-manager-module/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (9)Versions (5)Used By (0)

ProxyManagerModule
==================

[](#proxymanagermodule)

[![Build Status](https://camo.githubusercontent.com/da3c81be7a4d1076d82050dd8809743a1341518b498aa64d5248807674c76f26/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f74686f6d61737661726769752f50726f78794d616e616765724d6f64756c652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/thomasvargiu/ProxyManagerModule/build-status/master)[![Code Coverage](https://camo.githubusercontent.com/b28ecf722f1b793dc18bb3afd2e21c84caeb931337aff24712141d734c0c9382/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f74686f6d61737661726769752f50726f78794d616e616765724d6f64756c652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/thomasvargiu/ProxyManagerModule/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/3747d1b78ba47dad1ecca5101e10fb7e15600ede89dd293c1896a16086662c27/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f74686f6d61737661726769752f50726f78794d616e616765724d6f64756c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/thomasvargiu/ProxyManagerModule/?branch=master)[![Dependency Status](https://camo.githubusercontent.com/7168e5cf447c7dbf3514129e203824ecd4201018430b2ff29970b182aa30bb03/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3534356638323030383638333332316263383030303033362f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/545f82008683321bc8000036)[![Latest Stable Version](https://camo.githubusercontent.com/ff3d7217a7820394429ccfd9a2be31b719f3a3b1f1629f82e8f79afc1d4d74d3/68747470733a2f2f706f7365722e707567782e6f72672f74686f6d61737661726769752f70726f78792d6d616e616765722d6d6f64756c652f762f737461626c652e737667)](https://packagist.org/packages/thomasvargiu/proxy-manager-module)[![Total Downloads](https://camo.githubusercontent.com/eee40a90278b49603344112619dbf7cc2eb316dbfe94faf2328bec1ef3da9b74/68747470733a2f2f706f7365722e707567782e6f72672f74686f6d61737661726769752f70726f78792d6d616e616765722d6d6f64756c652f646f776e6c6f6164732e737667)](https://packagist.org/packages/thomasvargiu/proxy-manager-module)[![Latest Unstable Version](https://camo.githubusercontent.com/f649ff834a2f8393a8fe949ee3bc0de920514be6e0da9b3f7b2972dd7b55c961/68747470733a2f2f706f7365722e707567782e6f72672f74686f6d61737661726769752f70726f78792d6d616e616765722d6d6f64756c652f762f756e737461626c652e737667)](https://packagist.org/packages/thomasvargiu/proxy-manager-module)[![License](https://camo.githubusercontent.com/759b1f660bde22865be1a13b36c7a095d5025f4c744d24e1e49e515f358e35b6/68747470733a2f2f706f7365722e707567782e6f72672f74686f6d61737661726769752f70726f78792d6d616e616765722d6d6f64756c652f6c6963656e73652e737667)](https://packagist.org/packages/thomasvargiu/proxy-manager-module)

**Status: development**

ZF2 module that allows simplified use of [Ocramius/ProxyManager](https://github.com/Ocramius/ProxyManager) registering factories in the service manager.

Configuration
-------------

[](#configuration)

```
return [
    'proxy_manager_module' => [
        'configuration' => [
            /*
             * Proxies namespace
             *
             * A namespace for proxies
             */
            // 'proxies_namespace' => '',

            /*
             * Proxies Target Directory
             *
             * Where to save proxies
             */
            // 'proxies_target_dir' => './data/ProxyManager',

            /*
             * Generator Strategy
             *
             * An instance of ProxyManager\GeneratorStrategy\GeneratorStrategyInterface
             * or a service name in the service locator
             */
            // 'generator_strategy' => '',

            /*
             * Proxy autoloader
             *
             * An instance of ProxyManager\Autoloader\AutoloaderInterface
             * or a service name in the service locator
             */
            // 'proxy_autoloader' => '',

            /*
             * Class name inflector
             *
             * An instance of ProxyManager\Inflector\ClassNameInflectorInterface
             * or a service name in the service locator
             */
            // 'class_name_inflector' => '',
        ],
    ],
];
```

Registered Factories
--------------------

[](#registered-factories)

```
return [
    'service_manager' => [
        'factories' => [
            'ProxyManager\\Configuration' => 'ProxyManagerModule\\Factory\\ConfigurationFactory',
            'ProxyManager\\Factory\\AccessInterceptorScopeLocalizerFactory' => 'ProxyManagerModule\\Factory\\AccessInterceptorScopeLocalizerFactoryFactory',
            'ProxyManager\\Factory\\AccessInterceptorValueHolderFactory' => 'ProxyManagerModule\\Factory\\AccessInterceptorValueHolderFactoryFactory',
            'ProxyManager\\Factory\\LazyLoadingGhostFactory' => 'ProxyManagerModule\\Factory\\LazyLoadingGhostFactoryFactory',
            'ProxyManager\\Factory\\LazyLoadingValueHolderFactory' => 'ProxyManagerModule\\Factory\\LazyLoadingValueHolderFactoryFactory',
            'ProxyManager\\Factory\\NullObjectFactory' => 'ProxyManagerModule\\Factory\\NullObjectFactoryFactory',
        ],
    ],
];
```

### Configuration

[](#configuration-1)

- `ProxyManager\Configuration`: Create the ProxyManager configuration from config

### Factories

[](#factories)

These are factories created using configuration created by `ProxyManager\Configuration` service factory:

- `ProxyManager\Factory\AccessInterceptorScopeLocalizerFactory`
- `ProxyManager\Factory\AccessInterceptorValueHolderFactory`
- `ProxyManager\Factory\LazyLoadingGhostFactory`
- `ProxyManager\Factory\LazyLoadingValueHolderFactory`
- `ProxyManager\Factory\NullObjectFactory`

How to use
----------

[](#how-to-use)

You can request a Proxy Factory by getting the factory via service manager.

```
/** @var \Zend\ServiceManager\ServiceLocatorInterface $serviceLocator */
$serviceLocator = $this->getServiceLocator();
/** @var \ProxyManager\Factory\LazyLoadingGhostFactory $proxyFactory */
$proxyFactory = $serviceLocator->get('ProxyManager\\Factory\\LazyLoadingGhostFactory');
```

Of course, you can register alias names in the `service_manager` config key.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

Every ~140 days

Total

4

Last Release

3683d ago

Major Versions

v0.1.0 → 1.0.02015-05-07

v0.2.0 → 2.0.0.x-dev2016-04-17

PHP version history (2 changes)v0.1.0PHP &gt;=5.4

2.0.0.x-devPHP ~7.0

### Community

Maintainers

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

---

Top Contributors

[![thomasvargiu](https://avatars.githubusercontent.com/u/732012?v=4)](https://github.com/thomasvargiu "thomasvargiu (20 commits)")

---

Tags

aopproxyproxy patternservice proxieslazy loadingzf2Zend Framework

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/thomasvargiu-proxy-manager-module/health.svg)

```
[![Health](https://phpackages.com/badges/thomasvargiu-proxy-manager-module/health.svg)](https://phpackages.com/packages/thomasvargiu-proxy-manager-module)
```

###  Alternatives

[ocramius/proxy-manager

A library providing utilities to generate, instantiate and generally operate with Object Proxies

5.0k82.4M230](/packages/ocramius-proxy-manager)[friendsofphp/proxy-manager-lts

Adding support for a wider range of PHP versions to ocramius/proxy-manager

1.2k139.1M104](/packages/friendsofphp-proxy-manager-lts)[symfony/var-exporter

Provides tools to export, instantiate, hydrate, clone and lazy-load PHP objects

2.1k378.1M441](/packages/symfony-var-exporter)[zf-commons/zfc-base

A set of genetic (abstract) classes which are commonly used across multiple modules.

1441.1M25](/packages/zf-commons-zfc-base)[snapshotpl/zf-snap-geoip

MaxMind GeoIP Module for Zend Framework 2

1512.9k](/packages/snapshotpl-zf-snap-geoip)[sandrokeil/easy-config

Zend Framework 2 (zf2) module to retrieve specific module options and provides some abstract factories to create easily instances depending on configuration

113.1k1](/packages/sandrokeil-easy-config)

PHPackages © 2026

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