PHPackages                             phpnomad/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. phpnomad/facade

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

phpnomad/facade
===============

1.1.1(3w ago)05.9k↓23.3%[1 issues](https://github.com/phpnomad/facade/issues)[2 PRs](https://github.com/phpnomad/facade/pulls)6MITPHPCI failing

Since Oct 30Pushed 3w ago2 watchersCompare

[ Source](https://github.com/phpnomad/facade)[ Packagist](https://packagist.org/packages/phpnomad/facade)[ Docs](https://github.com/phpnomad/core)[ RSS](/packages/phpnomad-facade/feed)WikiDiscussions main Synced yesterday

READMEChangelog (3)Dependencies (9)Versions (10)Used By (6)

phpnomad/facade
===============

[](#phpnomadfacade)

[![Latest Version](https://camo.githubusercontent.com/c486485c1f138f2419ad1091d9adb4c739e9e79f74dd4e16673223cf59ae86a2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7068706e6f6d61642f6661636164652e737667)](https://packagist.org/packages/phpnomad/facade)[![Total Downloads](https://camo.githubusercontent.com/591c8176ef6dcc4f6fefae65374122d22456f122d1b5f7a34bb392a7a29a3bfd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7068706e6f6d61642f6661636164652e737667)](https://packagist.org/packages/phpnomad/facade)[![PHP Version](https://camo.githubusercontent.com/9b7896714604621862f3e53758366b3e64e10192573d14f479f0dbc479b46259/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7068706e6f6d61642f6661636164652e737667)](https://packagist.org/packages/phpnomad/facade)[![License](https://camo.githubusercontent.com/2c4ab1fffc8bcefa5312107eb5c637e42d7f564632050ff7a3403de607c4e666/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7068706e6f6d61642f6661636164652e737667)](https://packagist.org/packages/phpnomad/facade)

`phpnomad/facade` provides the base classes and interfaces for building static-bound service facades in PHPNomad. The abstract `Facade` class resolves its target through the DI container on demand, and the `HasFacades` interface lets an initializer register its facades with the framework during bootstrap. The pattern is how you end up calling `Cache::get($key)` or `Logger::error($message)` from anywhere in your code without wiring up the container at each call site.

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

[](#installation)

```
composer require phpnomad/facade
```

Most applications pull this in as a transitive dependency of `phpnomad/core`, which ships concrete facades for cache, events, logging, templates, and URL and path resolution.

Overview
--------

[](#overview)

- `PHPNomad\Facade\Abstracts\Facade` is a generic, container-aware base class. A concrete subclass implements `abstractInstance()` to name the bound interface, and the base pulls the resolved implementation from the DI container when a facade method is called.
- `PHPNomad\Facade\Interfaces\HasFacades` is the contract initializers implement to advertise their facades. Return an array of facade instances from `getFacades()` and the framework hands each one a container reference during the loader phase.
- Resolution is lazy. The container is queried when a facade method fires, not when the facade is registered, so services with expensive dependencies stay cheap until something actually calls them.
- When container resolution throws a `DiException`, the base attempts to log a critical error through `LoggerStrategy` with the failing abstraction and the container reference before rethrowing, so you get a breadcrumb instead of a bare stack trace.

For working examples of concrete facades built on this base, see the `Facades/` directory in `phpnomad/core` (Cache, Event, Logger, Template, UrlResolver, PathResolver, InstanceProvider).

Documentation
-------------

[](#documentation)

Full framework documentation lives at [phpnomad.com](https://phpnomad.com).

License
-------

[](#license)

MIT. See [LICENSE.txt](LICENSE.txt).

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance96

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85% 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 ~270 days

Total

3

Last Release

21d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9e6206223bd6f2a57b8ac80605b1b5c3521faaec18ad3f20f25fb728a9a13784?d=identicon)[tstandiford](/maintainers/tstandiford)

---

Top Contributors

[![alexstandiford](https://avatars.githubusercontent.com/u/8210827?v=4)](https://github.com/alexstandiford "alexstandiford (17 commits)")[![malayladu](https://avatars.githubusercontent.com/u/708174?v=4)](https://github.com/malayladu "malayladu (2 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

design-patternfacadeframeworkphpphpnomadplatform-agnosticsdk

### Embed Badge

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

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

###  Alternatives

[humaidem/filament-map-picker

5921.6k](/packages/humaidem-filament-map-picker)

PHPackages © 2026

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