Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 1, 2024 via composer

ocramius/proxy-manager 2.14.1

A library providing utilities to generate, instantiate and generally operate with Object Proxies
Package summary
Share
0
issues
3
licenses
1
BSD-3-Clause
1
MIT
1
BSD-2-Clause
Package created
19 Mar 2013
Version published
5 Mar 2022
Maintainers
1
Total deps
3
Direct deps
2
License
MIT

Issues

0
This package has no issues

Licenses

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
laminas/laminas-code@4.13.0

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
ocramius/proxy-manager@2.14.1

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
webimpress/safe-writer@2.2.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

2
All Dependencies CSV
β“˜ This is a list of ocramius/proxy-manager 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
laminas/laminas-code4.13.086.34 kBBSD-3-Clause
prod
webimpress/safe-writer2.2.021.49 kBBSD-2-Clause
prod

Visualizations

Frequently Asked Questions

What does ocramius/proxy-manager do?

The ocramius/proxy-manager is a PHP library created to provide abstract utilities for generating, instantiating, and manipulating Object Proxies. Object Proxies are vital tools within PHP for creating various kinds of proxy classes. The ocramius/proxy-manager utilises the proxy pattern, granting the ability to control when and how the original objects perform certain actions by creating interfaces that they can interact with.

How do you use ocramius/proxy-manager?

To make use of the ocramius/proxy-manager, you need to install it via composer. The suggested command for installation is:

php composer.phar require ocramius/proxy-manager

Once installed, an example of how to use ocramius/proxy-manager to build a lazy loading object with ProxyManager using a Virtual Proxy would be:

$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();

The proxy invokes the instantiation logic for any class only when needed which leads to savings in terms of resources.

Where are the ocramius/proxy-manager docs?

The official documentation for the ocramius/proxy-manager, where you can learn about the proxy pattern and how to use the ProxyManager, can be found on its github repository under the docs folder. In this doc, a broad range of proxy types are covered along with extensive usage examples. Such information is essential for unlocking the full potential and understanding the various applications of the ocramius/proxy-manager.