Release Notes for 2.14.1
2.14.1
- Total issues resolved: 0
- Total pull requests resolved: 1
- Total contributors: 1
enhancement
- 752: Merge release 2.13.1 into 2.14.x thanks to @github-actions[bot]
README 里没有找到可直接复制的安装命令,请到 README 或官方文档查看安装方式。
README 没有说明硬件要求。
这个项目的说明还在生成中,先参考下面「最近发版」和 README。
还没有人点评。第一个说出真实体验的人最有价值。
If you currently live in Russia, please read this message.
This library aims to provide abstraction for generating various kinds of proxy classes.

You can learn about the proxy pattern and how to use the ProxyManager in the docs.
Available as part of the Tidelift Subscription.
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..
You can also contact the maintainer at [email protected] for looking into issues related to this package in your private projects.
The suggested installation method is via composer:
php composer.phar require ocramius/proxy-manager
Here's how you build a lazy loadable object with ProxyManager using a Virtual Proxy
$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
return true; // report success
}
);
$proxy->doFoo();
See the documentation for more supported proxy types and examples.