2017 © Pedro Peláez
 

library phproxy

Class proxy

image

crashuxx/phproxy

Class proxy

  • Tuesday, September 19, 2017
  • by crashuxx
  • Repository
  • 3 Watchers
  • 2 Stars
  • 229 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 5 % Grown

The README.md

phproxy

Class proxy for php based on java.lang.reflect.Proxy. This library is under Apache License 2.0., (*1)

Build Status, (*2)

PHP >= 5.5 HHVM >= 3.4.0, (*3)

Usage:, (*4)

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();

The Versions

19/09 2017

dev-master

9999999-dev

Class proxy

  Sources   Download

Apache-2.0 BSD-3-Clause

The Development Requires

by Lukas Pająk

class proxy

25/11 2014

1.0

1.0.0.0

Class proxy

  Sources   Download

Apache-2.0 BSD-3-Clause

The Development Requires

by Lukas Pająk

class proxy