Description
This library aims at providing abstraction for generating various kinds of proxy classes.
ProxyManager alternatives and similar libraries
Based on the "Database" category.
Alternatively, view ProxyManager alternatives based on common mentions on social networks and blogs.
-
Medoo
The lightweight PHP database framework to accelerate development -
Doctrine Extensions
A collection of Doctrine behavioural extensions. -
Idiorm
A lightweight nearly-zero-configuration object-relational mapper and fluent query builder for PHP5. -
Aura.Sql
Provides an extension to the native PDO along with a profiler and connection locator. -
Aura.SqlQuery
Independent query builders for MySQL, PostgreSQL, SQLite, and Microsoft SQL Server. Edit -
Atlas.Orm
A data mapper implementation for your persistence model in PHP. -
ATK Data
Data Access PHP framework for High-Latency databases (SQL/NoSQL) -
Cake ORM
Object-Relational Mapper, implemented using the DataMapper pattern (CP). -
Elasticsearch Eloquent
Elasticsearch functionality like Laravel Eloquent models -
Simple MySQLi Class
Simple MySQLi Abstraction Layer and mysqli-result Wrapper -
LDBA
High-performance, low-memory-footprint, single-file embedded database for key/value storage -
PHP library access Firebase RESTful API
A working Firebase http client -
Symfony-RDM
Helps with the use of domain driven design & rich domain model in symfony / doctrine applications. -
LazyRecord
A fast ORM designed for simplicity, extendability and performance.
Scout APM - Leading-edge performance monitoring starting at $39/month
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of ProxyManager or a related project?
README
Proxy Manager
This library aims to provide abstraction for generating various kinds of proxy classes.
Documentation
You can learn about the proxy pattern and how to use the ProxyManager in the [docs](docs).
ocramius/proxy-manager for enterprise
Available as part of the Tidelift Subscription.
The maintainer of ocramius/proxy-manager and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more..
You can also contact the maintainer at [email protected] for looking into issues related to this package in your private projects.
Installation
The suggested installation method is via composer:
php composer.phar require ocramius/proxy-manager
Proxy example
Here's how you build a lazy loadable object with ProxyManager using a Virtual Proxy
$factory = new \ProxyManager\Factory\LazyLoadingValueHolderFactory();
$proxy = $factory->createProxy(
\MyApp\HeavyComplexObject::class,
function (& $wrappedObject, $proxy, $method, $parameters, & $initializer) {
$wrappedObject = new \MyApp\HeavyComplexObject(); // instantiation logic here
$initializer = null; // turning off further lazy initialization
}
);
$proxy->doFoo();
See the [documentation](docs) for more supported proxy types and examples.