PHPackages                             terminusstudio/slimfacades - 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. terminusstudio/slimfacades

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

terminusstudio/slimfacades
==========================

Laravel like Facade for Slim 4

1.1.0(5y ago)057MITPHPPHP ^7.2 || ^8.0

Since Apr 5Pushed 5y ago1 watchersCompare

[ Source](https://github.com/TerminusStudio/SlimFacades)[ Packagist](https://packagist.org/packages/terminusstudio/slimfacades)[ Docs](https://github.com/TerminusStudio/SlimFacades)[ RSS](/packages/terminusstudio-slimfacades/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

Slim Facades
============

[](#slim-facades)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e0ea8d4d378f292368eb242f0347eb1a967c1aec73c482458b62873fbfcfd5d0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f5465726d696e757353747564696f2f536c696d466163616465732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/TerminusStudio/SlimFacades)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/686e926a7ebad711d8f490c3b404e870a73956ce53edb3968f21811f730924cc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f5465726d696e757353747564696f2f536c696d466163616465732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/TerminusStudio/SlimFacades)

Facades for Slim PHP Framework.

Install
-------

[](#install)

Via Composer

```
$ composer require terminusstudio/slimfacades
```

Usage
-----

[](#usage)

### Initializing

[](#initializing)

```
$app = Slim\Factory\AppFactory::create();
TS\Facades\Facade::setFacadeApplication($app);
```

### Example Usage

[](#example-usage)

```
use TS\Facades\Route;

Route::get('/', function ($request, $response) {
    ...
});
```

You can make use of the PHPDoc methods in most of the facade classes if you have IntelliSense/Code Completion enabled in your IDE. The PHPDoc comments support Slim functions and some other general PSR11 specific functions.

### Extending

[](#extending)

Easily add more functionality by extending from the `Facade` class.

```
use TS\Facades\Facade;

class Log extends Facade
{
    public static function self()
    {
        return new Logger();
    }
}
```

Alternatively, you could also access the container by overriding the `getFacadeAccessor` method and returning the id/key of the object in the container.

```
use TS\Facades\Facade;

class Log extends Facade
{
    public static function getFacadeAccessor()
    {
        return 'logger';
    }
}
```

License
-------

[](#license)

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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 ~383 days

Total

2

Last Release

1846d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8426015?v=4)[Sugavanas](/maintainers/Sugavanas)[@Sugavanas](https://github.com/Sugavanas)

---

Top Contributors

[![Sugavanas](https://avatars.githubusercontent.com/u/8426015?v=4)](https://github.com/Sugavanas "Sugavanas (6 commits)")

---

Tags

facadesphpphp-libraryslimslim-frameworkslimfacadesTerminusStudio

### Embed Badge

![Health badge](/badges/terminusstudio-slimfacades/health.svg)

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

###  Alternatives

[bryanjhv/slim-session

Session middleware and helper for Slim framework 4.

233961.5k16](/packages/bryanjhv-slim-session)[selective/basepath

A URL base path detector for Slim 4

50521.0k12](/packages/selective-basepath)[arokettu/phpstorm-metadata-export

Export PhpStorm Advanced Metadata from DI containers

1234.0k1](/packages/arokettu-phpstorm-metadata-export)[zhangshize/slim-facades

Facades for Slim 3 &amp; 4.

137.3k1](/packages/zhangshize-slim-facades)

PHPackages © 2026

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