PHPackages                             web-fu/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. web-fu/proxy

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

web-fu/proxy
============

Library that allows to access array and object and proxy them

v1.2.0(1mo ago)06191MITPHPPHP 8.0.\* || 8.1.\* || 8.2.\* || 8.3.\* || 8.4.\*

Since Jan 14Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/web-fu/proxy)[ Packagist](https://packagist.org/packages/web-fu/proxy)[ RSS](/packages/web-fu-proxy/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (9)Versions (11)Used By (1)

Proxy
=====

[](#proxy)

[![Latest Stable Version](https://camo.githubusercontent.com/2fb7ccff392ba4a9df3bbd5c0d34332f1eb8c26b49a1a227a2b160d792773790/68747470733a2f2f706f7365722e707567782e6f72672f7765622d66752f70726f78792f76)](https://packagist.org/packages/web-fu/proxy)[![PHP Version Require](https://camo.githubusercontent.com/bf7a9a6b2243929cfd1e5c55cb707e3a27e48108d2571263f0d5d0e2c4da1c51/68747470733a2f2f706f7365722e707567782e6f72672f7765622d66752f70726f78792f726571756972652f706870)](https://packagist.org/packages/web-fu/proxy)[![Test status](https://github.com/web-fu/proxy/actions/workflows/tests.yaml/badge.svg)](https://github.com/web-fu/proxy/actions/workflows/tests.yaml/badge.svg)[![Static analysis status](https://github.com/web-fu/proxy/actions/workflows/static-analysis.yml/badge.svg)](https://github.com/web-fu/proxy/actions/workflows/static-analysis.yml/badge.svg)[![Code style status](https://github.com/web-fu/proxy/actions/workflows/code-style.yaml/badge.svg)](https://github.com/web-fu/proxy/actions/workflows/code-style.yaml/badge.svg)

### A library that allows to create proxies for array and objects

[](#a-library-that-allows-to-create-proxies-for-array-and-objects)

This library allows to create proxies for arrays and objects.

This is a spin-off of the [PHP Dot Notation](https://github.com/web-fu/php-dot-notation) library.

Installation
------------

[](#installation)

```
composer require web-fu/proxy
```

Create a Proxy
--------------

[](#create-a-proxy)

```
$element = [
    'foo' => 'bar',
    'zod' => [
        'baz' => 'qux',
    ],
];

$proxy = new Proxy($element);
```

Getting and setting values
--------------------------

[](#getting-and-setting-values)

```
echo $proxy->get('foo'); //bar
$proxy->set('foo', 'baz');
echo $element['foo']; //baz
```

Checking keys
-------------

[](#checking-keys)

```
echo $proxy->has('foo'); //true
echo $proxy->isInitialised('foo'); //true
echo $proxy->dynamicKeysAllowed(); //true;
```

Creating and destroying keys
----------------------------

[](#creating-and-destroying-keys)

```
$proxy->create('rol', 'foo');
echo $element['rol']; //foo

$proxy->unset('zod');
var_dump($element); //['foo' => 'bar']
```

Getting a proxy for a key
-------------------------

[](#getting-a-proxy-for-a-key)

```
$proxy->getProxy('zod')->set('baz', 'qux');
echo $element['zod']['baz']; //qux
```

See `/examples` folder for full examples

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance89

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~144 days

Total

4

Last Release

54d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/67ea52e8c69cddde94034b5d9006666d238a7b4266791954f5ce80e7264b722b?d=identicon)[web-fu](/maintainers/web-fu)

---

Top Contributors

[![web-fu](https://avatars.githubusercontent.com/u/2857138?v=4)](https://github.com/web-fu "web-fu (39 commits)")

---

Tags

phpproxyarrayobjectphp8

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/web-fu-proxy/health.svg)

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

PHPackages © 2026

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