PHPackages                             hassankhan/frontman - 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. hassankhan/frontman

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

hassankhan/frontman
===================

A simple package to create your own Laravel-style facades

v0.2.1(11y ago)34.7k↓50%11MITPHPPHP &gt;=5.3.0

Since Feb 4Pushed 11y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (6)Used By (1)

Frontman
========

[](#frontman)

[![Latest version](https://camo.githubusercontent.com/2325098dbd1e7e8b07e0eac4bfeb549fa4de9eb148b5849f19d49efd5b9c8308/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f68617373616e6b68616e2f66726f6e746d616e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hassankhan/frontman)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/c46561c3ece7553144a6597d27d963732200246a227137687db6ee5916137fa2/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f68617373616e6b68616e2f66726f6e746d616e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/hassankhan/frontman)[![Coverage Status](https://camo.githubusercontent.com/17116dcabdfac0c885d6f9dc72912499ed48b79a467c17b16581680d564ab6c0/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f68617373616e6b68616e2f66726f6e746d616e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/hassankhan/frontman/code-structure)[![Quality Score](https://camo.githubusercontent.com/1838fb0f1eab55491147c71e5dc1df8cbbac0997783d70aef82ab53fa8cc396c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f68617373616e6b68616e2f66726f6e746d616e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/hassankhan/frontman)[![Total Downloads](https://camo.githubusercontent.com/16fcb0571eb1b04f98aacd045e671bb1886029a15a3a957020acfa1c65556b8c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f68617373616e6b68616e2f66726f6e746d616e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hassankhan/frontman)

Frontman is a simple class that you can extend to create your own Laravel-style facades (or [proxies](http://en.wikipedia.org/wiki/Proxy_pattern), as they should be called).

Install
-------

[](#install)

Via Composer

```
$ composer require hassankhan/frontman
```

Usage
-----

[](#usage)

```
use Frontman\Proxy;
use Frontman\ProxyInterface;

class MyClass
{
    public function foo()
    {
        echo 'Foo';
    }
}

class MyOtherClass
{
    protected $value;

    public function __construct($value)
    {
        $this->value = $value;
    }

    public function bar()
    {
        echo 'Bar';
    }
}

class MyProxy extends Proxy implements ProxyInterface
{
    public static function getRealClass()
    {
        return 'MyClass';
    }
}

class MyOtherProxy extends Proxy implements ProxyInterface
{
    public static function getRealClass()
    {
        return 'MyOtherClass';
    }

    public static function getConstructorArguments()
    {
        return array('5');
    }
}

MyProxy::foo();         // 'Foo'
MyOtherProxy::bar();    // 'Bar'
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Hassan Khan](https://github.com/hassankhan)
- [All Contributors](https://github.com/hassankhan/frontman/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE.md](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95% 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 ~6 days

Total

4

Last Release

4101d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1781985?v=4)[Hassan Khan](/maintainers/hassankhan)[@hassankhan](https://github.com/hassankhan)

---

Top Contributors

[![hassankhan](https://avatars.githubusercontent.com/u/1781985?v=4)](https://github.com/hassankhan "hassankhan (19 commits)")[![hannesvdvreken](https://avatars.githubusercontent.com/u/1410358?v=4)](https://github.com/hannesvdvreken "hannesvdvreken (1 commits)")

---

Tags

facadeshassankhanfrontman

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/hassankhan-frontman/health.svg)

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

PHPackages © 2026

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