Download the PHP package codeeverything/burlap without Composer

On this page you can find all versions of the php package codeeverything/burlap. 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 burlap

Build Status

Burlap

Burlap is a simple Dependency Injection Container for PHP, inspired by Fabien Potencier's Twittee and series on Dependency Injection.

To play nice with others Burlap implements the ContainerInterface and Delegate Container policies from the Container Interoperability standard.

Contributions

NB: This is not intended to be production ready, but suggestions and PRs are welcomed! :)

Installation

Run in your terminal

Testing

Run in your terminal from the root of the project

Example Usage

Drawing upon Fabien Potencier's example in his dependency injection series, let's imagine setting up a mailer service.

Adding items to a Burlap container follows the same pattern as defining a service in AngularJS, where a single array argument is passed with the final element of this being the function to run, and all prior elements defining dependencies for that function. These dependencies should be services already registered with Burlap and are passed as arguments to the service being defined.

Create parameters for username and password:

Create a service to grab these:

Finally, create the service, making use of the previously defined services/parameters as dependencies:

With the service defined, we can now make use of it:

Container Interoperability

Burlap tries to play nice and implements the Container Interoperability standard.

This means we can also access our services in a more standardised way as below:

We can also check whether the container has a service of a given name:

Delegate Container

The Container Interoperability standard also defines a means of two containers working together, with one container living inside the other and acting solely to provide any necessary dependencies to the services defined in the other.

Burlap implements this by allowing you to pass the delegate container as a constructor argument:

An example of working with dependencies:

TODO


All versions of burlap with dependencies

PHP Build Version
Package Version
Requires container-interop/container-interop Version ^1.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 codeeverything/burlap contains the following files

Loading the files please wait ....