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

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

fershopls/facades
=================

Improve your abstract classes with PHP &amp; Facades!

113PHP

Since Apr 17Pushed 11y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Facades
=======

[](#facades)

Turn your abstract classes on Facades with PHP!

Also helps to keep your code clean, fast &amp; readable.

What that means?
----------------

[](#what-that-means)

[Wikipedia rules ;)](http://en.wikipedia.org/wiki/Facade_pattern)

Examples
--------

[](#examples)

**Abstract Class**

```
class HelloWorld {
    /*
     * Just sample method to say hello! :3
     */
    public function hello ($name = null)
    {
        if (!$name) return "Hello world!";
        else return "Hello {$name}, nice to meet you. ;)";
    }
}
```

**Facade Class**

```
class HelloWorldFacade extends \FershoPls\Facades\Facade {
    public function getFacadeAccessor ()
    {
    //  Full namespace class || some object/class instanced
        return "HelloWorld";
    }
}
```

**Runtime Code**

```
/**
 * Setup alias to use class everywhere. No really needed.
 */
class_alias("HelloWorld", "HelloWorldFacade");

/**
 * How to use a Facade Class?
 */
// Use normal methods as Static class! It isn't amazing?
echo HelloWorld::hello();
// Almost forget! You can pass arguments too.
echo HelloWorld::hello("John Doe");
```

### License

[](#license)

MIT Mudafakas ;)

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b428ccc8751861e69202048916b79ccc004ab59f44263384c110160857c62f9f?d=identicon)[fershopls](/maintainers/fershopls)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/fershopls-facades/health.svg)

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

###  Alternatives

[dnadesign/silverstripe-datedropdownselectorfield

Select your date values with Dropdown Fields

138.8k](/packages/dnadesign-silverstripe-datedropdownselectorfield)

PHPackages © 2026

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