PHPackages                             lordmonoxide/facade - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. lordmonoxide/facade

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lordmonoxide/facade
===================

Pseudo-static accessors for Phi bindings

1.0.1(11y ago)1251GPLv3PHPPHP &gt;=5.4.0

Since May 9Pushed 6y ago1 watchersCompare

[ Source](https://github.com/LordMonoxide/facade)[ Packagist](https://packagist.org/packages/lordmonoxide/facade)[ Docs](http://github.com/LordMonoxide/facade)[ RSS](/packages/lordmonoxide-facade/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

This package has been superceded by [BapCat/Facade](https://github.com/BapCat/Facade/).
=======================================================================================

[](#this-package-has-been-superceded-by-bapcatfacade)

[![Build Status](https://camo.githubusercontent.com/9026b6d5c58509a866d691239388ac2786744acc3a3ec7820fbc91ad211fe1d7/68747470733a2f2f7472617669732d63692e6f72672f4c6f72644d6f6e6f786964652f6661636164652e7376673f6272616e63683d312e302e31)](https://travis-ci.org/LordMonoxide/facade)[![Coverage Status](https://camo.githubusercontent.com/ca96fc7d1d1cd4ad2a9a060333851a343b600da04d10dda12b633aa5c1706cf3/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f4c6f72644d6f6e6f786964652f6661636164652f62616467652e7376673f6272616e63683d312e302e31)](https://coveralls.io/r/LordMonoxide/facade?branch=1.0.1)[![License](https://camo.githubusercontent.com/43c38c3666abcfe0044d2102559efd5ec1ee4e597b55e38d9065f6809be935a8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f4c6f72644d6f6e6f786964652f6661636164652e737667)](https://img.shields.io/packagist/l/LordMonoxide/facade.svg)

Phi Facades
===========

[](#phi-facades)

Facades are a way to make Phi bindings feel more natural.

Installation
------------

[](#installation)

### Composer

[](#composer)

[Composer](https://getcomposer.org/) is the recommended method of installation for Facade.

```
$ composer require lordmonoxide/facade

```

### GitHub

[](#github)

Facade may be downloaded from [GitHub](https://github.com/LordMonoxide/facade/).

Features
--------

[](#features)

### Pseudo-Static Access To Phi Singletons

[](#pseudo-static-access-to-phi-singletons)

A common use-case for Phi Facades is logging:

```
namespace Vendor\Package\Logging;

class Logger {
  public function warning($text) {
    // ...
  }
}
```

```
$logger = new Vendor\Package\Logging\Logger;

$phi = LordMonoxide\Phi\Phi::instance();
$phi->bind('core.log', $logger);
```

```
use LordMonoxide\Facade\Facade;

class Log extends Facade {
  protected static $_binding = 'core.log';
}
```

Once the facade is set up, the `Vendor\Package\Logging` singleton can be accessed like this:

```
Log::warning('Something bad happened!');
```

Phi Facades can even be used to create a facade for Phi:

```
$phi = LordMonoxide\Phi\Phi::instance();
$phi->bind('phi', $phi);
```

```
use LordMonoxide\Facade\Facade;

class Phi extends Facade {
  protected static $_binding = 'phi';
}
```

This will allow Phi to be accessed as such:

```
Phi::bind('Bar', 'Foo');
$foo = Phi::make('Bar');
```

### Phi Custom Resolvers

[](#phi-custom-resolvers)

If you are using Phi 1.2.0 or greater, Phi facades will work seamlessly with custom resolvers.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

3

Last Release

4023d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/246ea082e8ed7f6e8ace29950179d4dfb1e3a58bac53aef49a3d2e43ab1e7f04?d=identicon)[LordMonoxide](/maintainers/LordMonoxide)

---

Top Contributors

[![LordMonoxide](https://avatars.githubusercontent.com/u/437657?v=4)](https://github.com/LordMonoxide "LordMonoxide (10 commits)")

---

Tags

dependency-injectiondiiocfacadeinversion of control

### Embed Badge

![Health badge](/badges/lordmonoxide-facade/health.svg)

```
[![Health](https://phpackages.com/badges/lordmonoxide-facade/health.svg)](https://phpackages.com/packages/lordmonoxide-facade)
```

###  Alternatives

[level-2/dice

A minimalist Dependency injection container (DIC) for PHP. Please note: 3.0+ is only compatible with PHP 7.0. The 2.0 branch is compatbile with PHP 5.6.

437730.3k17](/packages/level-2-dice)[mouf/mouf

The Mouf PHP framework: an open-source PHP framework providing an easy way to download, install, use and reuse components, with a graphical user interface.

55146.0k17](/packages/mouf-mouf)[capsule/di

A PSR-11 compliant autowiring dependency injection container.

2857.5k2](/packages/capsule-di)[x-wp/di

The dependency injection container for WordPress

301.1k10](/packages/x-wp-di)[michaels/data-manager

Simple data manager for nested data, dot notation array access, extendability, and container interoperability.

121.9k2](/packages/michaels-data-manager)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
