crashuxx/phproxy
最新稳定版本:1.0
Composer 安装命令:
composer require crashuxx/phproxy
包简介
Class proxy
README 文档
README
Class proxy for php based on java.lang.reflect.Proxy. This library is under Apache License 2.0.
PHP >= 5.5 HHVM >= 3.4.0
Usage:
use \Reflection\Proxy; class MyInvocationHandler implements \Reflection\InvocationHandler { /** * @param object $proxy * @param string $method * @param mixed[] $args * @return mixed */ function invoke($proxy, $method, $args) { echo $method; return 'my return value'; } } $proxy = Proxy::newProxyInstance(\stdClass::class, new MyInvocationHandler()); echo $proxy->CustomMethod();
统计信息
- 总下载量: 6.01k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2014-11-23