GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Ocramius/ProxyManager: 🎩✨🌈 OOP Proxy wrappers/utilities - generates and manages proxies of your objects

BranchesTags
Open more actions menu

Latest commit

 

History

2,959 Commits
2,959 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
docs
docs
 
 
examples
examples
 
 
src/ProxyManager
src/ProxyManager
 
 
tests
tests
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.phpstorm.meta.php
.phpstorm.meta.php
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
STABILITY.md
STABILITY.md
 
 
ToRussianPeople.md
ToRussianPeople.md
 
 
UPGRADE.md
UPGRADE.md
 
 
composer.json
composer.json
 
 
composer.lock
composer.lock
 
 
infection.json.dist
infection.json.dist
 
 
phpbench.json
phpbench.json
 
 
phpcs.xml.dist
phpcs.xml.dist
 
 
phpdox.xml.dist
phpdox.xml.dist
 
 
phpmd.xml.dist
phpmd.xml.dist
 
 
phpunit.xml.dist
phpunit.xml.dist
 
 
proxy-manager.png
proxy-manager.png
 
 
proxy-manager.svg
proxy-manager.svg
 
 
psalm.xml
psalm.xml
 
 
renovate.json
renovate.json
 
 

Repository files navigation

Proxy Manager

A message to Russian 🇷🇺 people

If you currently live in Russia, please read this message.

Purpose

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.

About

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

Topics

aoplazy-loadingoopproxy

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity

Stars

4.9k stars

Watchers

42 watching

Forks

191 forks
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.