PHPackages                             blast/facades - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. blast/facades

ActiveLibrary

blast/facades
=============

Minimize complexity and represent dependencies as facades.

1.0(10y ago)7173.9k—1%3[5 issues](https://github.com/phpthinktank/blast-facades/issues)3MITPHPPHP &gt;=5.5.0

Since Oct 22Pushed 10y agoCompare

[ Source](https://github.com/phpthinktank/blast-facades)[ Packagist](https://packagist.org/packages/blast/facades)[ Docs](https://github.com/thephpleague/container)[ RSS](/packages/blast-facades/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (3)Used By (3)

Blast facades
=============

[](#blast-facades)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ae6ef40bb9ab61adf5d64c2b5f4b44052c914cf0ebe22449cc0c46855896f234/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626c6173742f666163616465732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/blast/facades)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/232f6b335605e15e53683dd4d072be4b62224b0b413f56009790fb3e63cfa9d5/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7068707468696e6b74616e6b2f626c6173742d666163616465732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/phpthinktank/blast-facades)[![Total Downloads](https://camo.githubusercontent.com/cda52c0ba837faba20ec98d93f06780cacc4cc3fb6119fc05f3af5845217dd8f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f626c6173742f666163616465732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/blast/facades)[![Coverage Status](https://camo.githubusercontent.com/dac25407f22e81a71a950bada1031707d0ef914f490c2fd0c905f7cb08d769a3/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f7068707468696e6b74616e6b2f626c6173742d666163616465732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/github/phpthinktank/blast-facades?branch=1.0.x-dev)

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](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md), [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) and [PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md). If you notice compliance oversights, please send a patch via pull request.

This package is also supporting [container-interop (PSR-11)](https://github.com/container-interop/container-interop/) and all container packages which are using container-interop.

Install
-------

[](#install)

Via Composer

```
$ composer require blast/facades
```

Usage
-----

[](#usage)

### Initialize

[](#initialize)

First of all we need to tell FacadeFactory which container instance should be used. We could use [thephpleague/container](http://container.thephpleague.com/) for example:

A bootstrap is looking like this:

```
