All Projects → Ocramius → Proxymanager

Ocramius / Proxymanager

Licence: mit
🎩✨🌈 OOP Proxy wrappers/utilities - generates and manages proxies of your objects

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to Proxymanager

Agentframework
An elegant & efficient TypeScript metaprogramming API to build software agents
Stars: ✭ 97 (-97.87%)
Mutual labels:  proxy, aop
Puresharp
Puresharp is a Framework that provides the essential APIs (AOP, IOC, etc...) to productively build high quality (.NET 4.5.2+ & .NET Core 2.1+) applications through reliability, scalability and performance without no compromise
Stars: ✭ 120 (-97.37%)
Mutual labels:  proxy, aop
java-springboot
(Java & React) Yazılım Geliştirici Yetiştirme Kampı Java kısmına ait yazılan kaynak kodlar ve ödev çalışmalarım.
Stars: ✭ 17 (-99.63%)
Mutual labels:  oop, aop
Aspect Injector
AOP framework for .NET (c#, vb, etc)
Stars: ✭ 398 (-91.26%)
Mutual labels:  aop
Proxy Web
proxy-web是用go语言写的,基于snail007/goproxy完成的可视化网页应用
Stars: ✭ 402 (-91.18%)
Mutual labels:  proxy
Shadowsocks Deepin
😎 a powful shadowsocks client for deepin
Stars: ✭ 429 (-90.58%)
Mutual labels:  proxy
Jcabi Aspects
Collection of AOP/AspectJ Java Aspects
Stars: ✭ 455 (-90.01%)
Mutual labels:  aop
Shadowsocksx Ng R
ShadowsocksX-NG-R: Shadowsocks(R) Client for MacOS
Stars: ✭ 393 (-91.37%)
Mutual labels:  proxy
Awesome Vpn
科学上网的有趣项目集锦,欢迎大家pr自己喜欢的项目到这里。
Stars: ✭ 445 (-90.23%)
Mutual labels:  proxy
Awesome Web Scraping
List of libraries, tools and APIs for web scraping and data processing.
Stars: ✭ 4,510 (-1.01%)
Mutual labels:  proxy
Chromium
Chromium browser with SSL VPN. Use this browser to unblock websites.
Stars: ✭ 4,041 (-11.3%)
Mutual labels:  proxy
Iox
Tool for port forwarding & intranet proxy
Stars: ✭ 411 (-90.98%)
Mutual labels:  proxy
Exodus
network proxy and tunnel (VPN)
Stars: ✭ 432 (-90.52%)
Mutual labels:  proxy
Encrypted Dns Server
An easy to install, high-performance, zero maintenance proxy to run an encrypted DNS server.
Stars: ✭ 398 (-91.26%)
Mutual labels:  proxy
Fanqiang
翻墙-科学上网
Stars: ✭ 23,428 (+414.22%)
Mutual labels:  proxy
Grpc Websocket Proxy
A proxy to transparently upgrade grpc-gateway streaming endpoints to use websockets
Stars: ✭ 395 (-91.33%)
Mutual labels:  proxy
Eo
EOLANG, the Programming Language
Stars: ✭ 442 (-90.3%)
Mutual labels:  oop
Rawgithack
Serves files from github, bitbucket and gitlab, but with the correct content types
Stars: ✭ 422 (-90.74%)
Mutual labels:  proxy
Httpteleport
Transfer 10Gbps http traffic over 1Gbps networks :)
Stars: ✭ 422 (-90.74%)
Mutual labels:  proxy
Ssl Proxy
🔒 Simple zero-config SSL reverse proxy with real autogenerated certificates (LetsEncrypt, self-signed, provided)
Stars: ✭ 427 (-90.63%)
Mutual labels:  proxy

Proxy Manager

This library aims to provide abstraction for generating various kinds of proxy classes.

ProxyManager

Mutation testing badge Type Coverage

Total Downloads Latest Stable Version Latest Unstable Version

Documentation

You can learn about the proxy pattern and how to use the ProxyManager in the 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

        return true; // report success
    }
);

$proxy->doFoo();

See the documentation for more supported proxy types and examples.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].