Download the PHP package golossus/php-lazy-proxy-loading without Composer

On this page you can find all versions of the php package golossus/php-lazy-proxy-loading. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-lazy-proxy-loading

Build Status codecov

php-lazy-proxy-loading is a package which tries to ease in the process of loading PHP classes (or services) by using a lazy strategy. This comes in handy when working with Dependency Injection containers which are in charge of building the services of many applications.

This package does so by providing a Proxy Class Factory which can create a Proxy Class for any PHP Class or service. Real service is only built when the service is really needed, that is at first call of its public methods.

It is specially interesting to combine this library with Laravel framework, given the fact that currently there's no a bult-in strategy in this framework to provide lazy-loading of services. We started this library in order to solve Dependency Injection issues we had using Laravel that could be solver very easily by lazy-loading some services.

Installation

Usage

Basic usage example:

It's worth noting in the above example $myClassProxy extends MyClass type, and it serves as an adapter behaving as the underlying service, so it can be injected seamlessly as the real service. Final service will be built once we call any of its public methods by using the callback function passed as second argument of the ProxyClassFactory::create method.

Laravel

For Laravel framework, this package provides a special trait to seamlessly use the proxy factory with its Dependency Injection container. You can use the trait in any Laravel service provider and define any service as lazy:

Community

Contributing

This is an Open Source project. The Golossus team wants to enable it to be community-driven and open to contributing documentation.

Security Issues

If you discover a security vulnerability, please follow our disclosure procedure.

About Us

This package development is led by the Golossus Team contributors.


All versions of php-lazy-proxy-loading with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package golossus/php-lazy-proxy-loading contains the following files

Loading the files please wait ....