PHPackages                             dealroadshow/proximity - 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. dealroadshow/proximity

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

dealroadshow/proximity
======================

Library that allows to create PHP proxy objects

v1.0.1(8mo ago)0186.8k↓46.7%3MITPHPPHP &gt;=8.2

Since Feb 18Pushed 8mo ago6 watchersCompare

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

READMEChangelog (2)Dependencies (1)Versions (3)Used By (3)

Create PHP proxy objects easily
===============================

[](#create-php-proxy-objects-easily)

Motivation
----------

[](#motivation)

This library is inspired by the brilliant [Ocramius/ProxyManager](https://github.com/Ocramius/ProxyManager) library. The mentioned library is lacking some features for now, such as ability to create proxies from the class instances with non-nullable typed properties. Unfortunately, this great library is not actively supported, therefore `dealroadshow/proximity` library tries to implement some of `ProxyManager`'s functionality.

Usage
-----

[](#usage)

You can easily create proxy instances by using `ProxyFactory` class:

```
