PHPackages                             noem/tiny-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. noem/tiny-proxy

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

noem/tiny-proxy
===============

Modular service container

0211PHP

Since Mar 22Pushed 3y agoCompare

[ Source](https://github.com/NoemPHP/tiny-proxy)[ Packagist](https://packagist.org/packages/noem/tiny-proxy)[ RSS](/packages/noem-tiny-proxy/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

TinyProxy
=========

[](#tinyproxy)

A small tool to help break recursive dependency chains by creating fully compatible proxy objects on the fly. It can also be used to defer instantiation logic until an object is first accessed. It works by generating the PHP code of the proxy class (which you can then `eval` or persist/require) via Reflection. This class is instantiated with nothing but a constructor function that returns the actual object. Currently, this package only covers the raw code generation. Caching to disk, or coming up with OOPy wrappers is up to consumers for now.

Example:

```
use Noem\TinyProxy\TinyProxy;

class User{

    public function __construct(public string $name, public int $age) {}

}

$php = TinyProxy::generateCode(User::class);
$proxyClassName = TinyProxy::proxyClassName(User::class)
eval($php);
$proxy = new $proxyClassName(fn() => new User('John', 42));

assert( $proxy instanceof User ); // true
$name = $proxy->name // 'John'
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/16e124446e13d0c8773106688a571f7afc645474750a5d8e7489e568f67d2822?d=identicon)[Biont](/maintainers/Biont)

---

Top Contributors

[![Biont](https://avatars.githubusercontent.com/u/4208996?v=4)](https://github.com/Biont "Biont (4 commits)")

### Embed Badge

![Health badge](/badges/noem-tiny-proxy/health.svg)

```
[![Health](https://phpackages.com/badges/noem-tiny-proxy/health.svg)](https://phpackages.com/packages/noem-tiny-proxy)
```

###  Alternatives

[whichbrowser/parser

Useragent sniffing library for PHP

1.8k11.6M50](/packages/whichbrowser-parser)[tm/tooly-composer-script

Simple composer script to manage phar files.

103280.1k32](/packages/tm-tooly-composer-script)[joetannenbaum/mr-clean

23044.5k](/packages/joetannenbaum-mr-clean)[winter/wn-blog-plugin

Blog plugin for Winter CMS

2042.1k3](/packages/winter-wn-blog-plugin)

PHPackages © 2026

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