Download the PHP package blast/facades without Composer

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

Blast facades

Latest Version on Packagist Build Status Total Downloads Coverage Status

Blast facades is aiming to minimize complexity and represent dependencies as generic facades. This package is part of Blast component collection.

This package is compliant with PSR-1, PSR-2 and PSR-4. If you notice compliance oversights, please send a patch via pull request.

This package is also supporting container-interop (PSR-11) and all container packages which are using container-interop.

Install

Via Composer

Usage

Initialize

First of all we need to tell FacadeFactory which container instance should be used. We could use thephpleague/container for example:

A bootstrap is looking like this:

Dealing with dependencies

We need to register a service to our container, for example with league/container.

There are several ways to now register this service with the container.

For a better transparency and design we recommend to pass an Interface or Contract FQCN as service id.

or

or

for more information please read league/container documentation

Creating and using a facade

A Facade should be an instance of AbstractFacade and should provide an accessor.

The accessor is the service identifier. It will be used to fetch the service in the container (via Interop\Container\ContainerInterface::get($accessor).

We could now call serivce methods from our facade, or the service instance itself.

Calling service instance

Calling service methods

or

or

or

You are also able to pass arguments. The method call itself is behaving like the call of original class.

Instance swaping

Sometimes service will be replaced by another service. As long as the service id is not changing, we don't need to modify anything in our facade.

Supporting projects

Projects using ContainerInterface

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email :author_email instead of using the issue tracker.

Credits

Special thanks

License

The MIT License (MIT). Please see License File for more information.


All versions of facades with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
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 blast/facades contains the following files

Loading the files please wait ....