2017 © Pedro Peláez
 

library proxy-manager

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

image

ocramius/proxy-manager

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

  • Saturday, June 9, 2018
  • by Ocramius
  • Repository
  • 48 Watchers
  • 1630 Stars
  • 16,137,234 Installations
  • PHP
  • 252 Dependents
  • 32 Suggesters
  • 114 Forks
  • 47 Open issues
  • 47 Versions
  • 10 % Grown

The README.md

Proxy Manager

This library aims to provide abstraction for generating various kinds of proxy classes., (*1)

ProxyManager, (*2)

Mutation testing badge Type Coverage, (*3)

Total Downloads Latest Stable Version Latest Unstable Version, (*4)

Documentation

You can learn about the proxy pattern and how to use the ProxyManager in the docs., (*5)

ocramius/proxy-manager for enterprise

Available as part of the Tidelift Subscription., (*6)

The maintainer of ocramius/proxy-manager and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.., (*7)

You can also contact the maintainer at ocramius@gmail.com for looking into issues related to this package in your private projects., (*8)

Installation

The suggested installation method is via composer:, (*9)

php composer.phar require ocramius/proxy-manager

Proxy example

Here's how you build a lazy loadable object with ProxyManager using a Virtual Proxy, (*10)

$factory = new \ProxyManager\Factory\LazyLoadingValueHolderFactory();

$proxy = $factory->createProxy(
    \MyApp\HeavyComplexObject::class,
    function (& $wrappedObject, $proxy, $method, $parameters, & $initializer) {
        $wrappedObject = new \MyApp\HeavyComplexObject(); // instantiation logic here
        $initializer   = null; // turning off further lazy initialization
    }
);

$proxy->doFoo();

See the documentation for more supported proxy types and examples., (*11)

The Versions

09/06 2018

dev-enhancement/use-infection-for-mutation-tests

dev-enhancement/use-infection-for-mutation-tests https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

08/10 2017

dev-feature/php-7.2-object-hint-support

dev-feature/php-7.2-object-hint-support https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

04/05 2017

dev-fix/#346-magic-methods-hints-reproducibility

dev-fix/#346-magic-methods-hints-reproducibility https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

04/05 2017

2.1.x-dev

2.1.9999999.9999999-dev https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

28/02 2017

dev-fix/phpstan-inspections

dev-fix/phpstan-inspections https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

30/11 2016

2.1.0

2.1.0.0 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

04/11 2016

2.0.x-dev

2.0.9999999.9999999-dev https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

04/11 2016

2.0.4

2.0.4.0 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

25/10 2016

dev-release-2.0.4

dev-release-2.0.4 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

01/07 2016

2.0.3

2.0.3.0 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

27/05 2016

2.0.2

2.0.2.0 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

08/02 2016

2.0.1

2.0.1.0 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

30/01 2016

2.0.0

2.0.0.0 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

29/01 2016

2.0.0-BETA3

2.0.0.0-beta3 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

26/01 2016

2.0.0-BETA2

2.0.0.0-beta2 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

23/01 2016

2.0.0-BETA1

2.0.0.0-beta1 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

31/08 2015

dev-experiment/better-reflection-integration

dev-experiment/better-reflection-integration https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

09/08 2015

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

09/08 2015

1.0.2

1.0.2.0 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

12/12 2014

1.0.0

1.0.0.0 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

12/12 2014

1.0.1

1.0.1.0 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

08/11 2014

1.0.0-beta3

1.0.0.0-beta3 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

23/10 2014

1.0.0-beta2

1.0.0.0-beta2 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

08/10 2014

1.0.0-beta1

1.0.0.0-beta1 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

28/09 2014

0.5.2

0.5.2.0 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

12/03 2014

0.5.1

0.5.1.0 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

30/11 2013

0.5.0

0.5.0.0 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

30/11 2013

0.5.0-BETA3

0.5.0.0-beta3 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

29/11 2013

0.5.0-BETA2

0.5.0.0-beta2 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

20/10 2013

0.5.0-BETA1

0.5.0.0-beta1 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

30/06 2013

0.4.1

0.4.1.0 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

28/06 2013

0.4.0

0.4.0.0 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

04/06 2013

0.3.6

0.3.6.0 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

14/05 2013

0.3.5

0.3.5.0 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

01/05 2013

0.3.4

0.3.4.0 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

20/04 2013

0.3.3

0.3.3.0 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

proxy aop lazy loading proxy pattern service proxies

19/04 2013

0.3.2

0.3.2.0 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

31/03 2013

0.3.1

0.3.1.0 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

30/03 2013

0.3.0

0.3.0.0 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

27/03 2013

0.2.0

0.2.0.0 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires

23/03 2013

0.1.0

0.1.0.0 https://github.com/Ocramius/ProxyManager

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

  Sources   Download

MIT

The Requires

 

The Development Requires