PHPackages                             letscodehu/php-dynamic-proxy - 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. letscodehu/php-dynamic-proxy

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

letscodehu/php-dynamic-proxy
============================

A dynamic proxy generator for PHP

1.0.5(9y ago)0841MITPHPPHP &gt;=5.4

Since Mar 30Pushed 9y ago1 watchersCompare

[ Source](https://github.com/letscodehu/php-dynamic-proxy)[ Packagist](https://packagist.org/packages/letscodehu/php-dynamic-proxy)[ Docs](http://github.com/guymers/php-dynamic-proxy)[ RSS](/packages/letscodehu-php-dynamic-proxy/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (1)Versions (8)Used By (1)

A dynamic proxy generator for PHP.

Based on Javassist [ProxyFactory](http://www.csg.is.titech.ac.jp/~chiba/javassist/html/javassist/util/proxy/ProxyFactory.html "ProxyFactory")

Usage
=====

[](#usage)

```
Config::set(["CACHE_DIRECTORY" => "/tmp/php-dynamic-proxy"]);

$class = new ReflectionClass("Class");
$methodOverrides = [
	new MethodHook {
		public function supports(ReflectionMethod $method) {
			return $method->getName() == "test";
		}

		public function invoke($proxy, ReflectionMethod $method, array $args) {
			// before original method

			$returnValue = $method->invokeArgs($proxy, $args);

			// after original method

			return $returnValue;
		}
	}
];

$proxy = ProxyFactory::create($class, $methodOverrides);
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 72.7% 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 ~237 days

Recently: every ~355 days

Total

7

Last Release

3412d ago

Major Versions

0.1 → 1.02013-04-01

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16595253?v=4)[Letscode.hu](/maintainers/letscodehu)[@letscodehu](https://github.com/letscodehu)

---

Top Contributors

[![guymers](https://avatars.githubusercontent.com/u/1100841?v=4)](https://github.com/guymers "guymers (8 commits)")[![letscodehu](https://avatars.githubusercontent.com/u/16595253?v=4)](https://github.com/letscodehu "letscodehu (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/letscodehu-php-dynamic-proxy/health.svg)

```
[![Health](https://phpackages.com/badges/letscodehu-php-dynamic-proxy/health.svg)](https://phpackages.com/packages/letscodehu-php-dynamic-proxy)
```

PHPackages © 2026

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