PHPackages                             bingo-soft/util - 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. bingo-soft/util

ActiveProject

bingo-soft/util
===============

Utility classes for PHP

1.8.3(2y ago)0788↑248.8%3MITPHPPHP ^8.0

Since Aug 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/bingo-soft/util)[ Packagist](https://packagist.org/packages/bingo-soft/util)[ Docs](https://github.com/bingo-soft/concurrent)[ RSS](/packages/bingo-soft-util/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (28)Used By (3)

[![Latest Stable Version](https://camo.githubusercontent.com/32bf34f65d79db7e20669efe04590d246c89e399ee98bee0ac23c7363b9444b6/68747470733a2f2f706f7365722e707567782e6f72672f62696e676f2d736f66742f7574696c2f762f737461626c652e706e67)](https://packagist.org/packages/bingo-soft/util)[![Minimum PHP Version](https://camo.githubusercontent.com/0e9ac047546796cfdbe1423d1f4d91c8f37d2fbb11614a7900bb7686aaa5401f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e342d3838393242462e737667)](https://php.net/)[![License: MIT](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](https://opensource.org/licenses/MIT)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/4ee2ec65d5454c54e50df992bd5e41d62b7c2d140614f95b250c623864f2baef/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62696e676f2d736f66742f7574696c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/bingo-soft/util/?branch=main)

util
====

[](#util)

Utility classes for PHP

Installation
============

[](#installation)

Install library, using Composer:

```
composer require bingo-soft/util

```

Proxy class
===========

[](#proxy-class)

```
/* Original class */

interface BusinessServiceInterface
{
}

class BusinessServiceImpl
{
    public function doSomething(int $id, string $name)
    {
        return "$id - $name";
    }
}

/* Handler */

use Util\Proxy\MethodHandlerInterface;

class DoSomethingMethodHandler implements MethodHandlerInterface
{
    public function invoke($proxy, \ReflectionMethod $thisMethod, \ReflectionMethod $proceed, array $args)
    {
        return 'prepend - ' . $proceed->invoke($proxy, ...$args);
    }
}

/* Custom proxy factory*/

use Util\Proxy\{
    MethodHandlerInterface,
    ProxyFactory
};

class MyProxyFactory
{
    public static function createProxy(string $type, MethodHandlerInterface $method, array $args = [])
    {
        $enhancer = new ProxyFactory();
        $enhancer->setSuperclass($type);
        $enhancer->setInterfaces([ BusinessServiceInterface::class ]);
        return $enhancer->create($args);
    }
}

/* Creation and test of proxy class*/

$method = new DoSomethingMethodHandler();
$proxy = MyProxyFactory::createProxy(BusinessServiceImpl::class, $method);
$proxy->setHandler($method);
echo $proxy->doSomething(1, "curitis"); // will print "prepend - 1 - curitis"
```

Enhanced reflection
===================

[](#enhanced-reflection)

```
/* Set nested property */

use Tests\Domain\Misc\RichType;
use Util\Reflection\SystemMetaObject;

$rich = new RichType();
$meta = SystemMetaObject::forObject($rich);
$meta->setValue("richType.richField", "foo");

echo $meta->getValue("richType.richField"); // new RichType( richType => new RichType ( richField => "foo" ))

/* Create meta object from array */

$map = [];
$metaMap = SystemMetaObject::forObject($map);
$metaMap->setValue("id", "100");
$metaMap->setValue("name.first", "Clinton");
print_r($map); // [ "id" => 100, "name" => [ "first" => "Clinton" ]]
```

Running tests
=============

[](#running-tests)

```
./vendor/bin/phpunit ./tests

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 93.8% 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 ~22 days

Recently: every ~15 days

Total

27

Last Release

767d ago

PHP version history (2 changes)1.0.0PHP ^7.4 || ^8.0

1.7.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/72e4d0dc8a6479742cdd0f141255b6f130df96cf2a1e3640349b9c737138697a?d=identicon)[bingo-soft](/maintainers/bingo-soft)

---

Top Contributors

[![vicvolk](https://avatars.githubusercontent.com/u/7192415?v=4)](https://github.com/vicvolk "vicvolk (30 commits)")[![bingo-soft](https://avatars.githubusercontent.com/u/48438172?v=4)](https://github.com/bingo-soft "bingo-soft (2 commits)")

---

Tags

phpproxyutil

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/bingo-soft-util/health.svg)

```
[![Health](https://phpackages.com/badges/bingo-soft-util/health.svg)](https://phpackages.com/packages/bingo-soft-util)
```

###  Alternatives

[zounar/php-proxy

Forward your HTTP/HTTPS requests to another server.

1814.0k](/packages/zounar-php-proxy)[swlib/util

Swlib Toolkit

11144.6k3](/packages/swlib-util)

PHPackages © 2026

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