PHPackages                             thecodingmachine/slim-universal-module - 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. [Framework](/categories/framework)
4. /
5. thecodingmachine/slim-universal-module

ActiveLibrary[Framework](/categories/framework)

thecodingmachine/slim-universal-module
======================================

Cross-framework module for slim framework

1.0.x-dev(9y ago)063MITPHPPHP &gt;=7.0

Since Jan 5Pushed 9y ago6 watchersCompare

[ Source](https://github.com/thecodingmachine/slim-universal-module)[ Packagist](https://packagist.org/packages/thecodingmachine/slim-universal-module)[ RSS](/packages/thecodingmachine-slim-universal-module/feed)WikiDiscussions 1.0 Synced 2d ago

READMEChangelogDependencies (8)Versions (1)Used By (0)

[![Build Status](https://camo.githubusercontent.com/86e4ce9d7e30c3edb11c141c78558e7442c2506a6a133f6f48ca71101c91a03a/68747470733a2f2f7472617669732d63692e6f72672f746865636f64696e676d616368696e652f736c696d2d756e6976657273616c2d70726f76696465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/thecodingmachine/slim-universal-provider)[![Coverage Status](https://camo.githubusercontent.com/6e431b8269aa00709f78b92745172252e999bf8db5f0cf87e14e71992243207d/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f746865636f64696e676d616368696e652f736c696d2d756e6976657273616c2d70726f76696465722f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/thecodingmachine/slim-universal-provider?branch=master)

Slim framework universal module
===============================

[](#slim-framework-universal-module)

This package integrates the Slim framework (v3) in any [container-interop/service-provider](https://github.com/container-interop/service-provider) compatible framework/container.

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

[](#installation)

```
composer require thecodingmachine/slim-universal-module

```

Once installed, you need to register the [`TheCodingMachine\SlimServiceProvider`](src/SlimServiceProvider.php) into your container.

If your container supports Puli integration, you have nothing to do. Otherwise, refer to your framework or container's documentation to learn how to register *service providers*.

Introduction
------------

[](#introduction)

This service provider is meant to create a base `Slim/App` instance. You can later play with this instance to add routes, etc...

Expected values / services
--------------------------

[](#expected-values--services)

This *service provider* expects the following configuration / services to be available:

NameCompulsoryDescription`settings`*no*The Slim settings (see [Slim documentation about settings](http://www.slimframework.com/docs/objects/application.html#application-configuration) for more details)Provided services
-----------------

[](#provided-services)

**Note**: Sadly, Slim uses containers as service locators instead of dependency injection containers. This means that the name of the instances is [dictated by Slim](http://www.slimframework.com/docs/concepts/di.html). The names could collide with some of your services! Be wary of this!

This *service provider* provides the following services:

Service nameDescription`App::class`The Slim app`settings`The Slim default settings`environment`Instance of `\Slim\Interfaces\Http\EnvironmentInterface`.`request`Instance of `\Psr\Http\Message\ServerRequestInterface`.`response`Instance of `\Psr\Http\Message\ResponseInterface`.`router`Instance of `\Slim\Interfaces\RouterInterface`.`foundHandler`Instance of `\Slim\Interfaces\InvocationStrategyInterface`.`phpErrorHandler`Callable invoked if a PHP 7 Error is thrown. See [Slim doc](http://www.slimframework.com/docs/concepts/di.html)`errorHandler`Callable invoked if an Exception is thrown. See [Slim doc](http://www.slimframework.com/docs/concepts/di.html)`notFoundHandler`Callable invoked if the current HTTP request URI does not match an application route. See [Slim doc](http://www.slimframework.com/docs/concepts/di.html)`notAllowedHandler`Callable invoked if an application route matches the current HTTP request path but not its method. See [Slim doc](http://www.slimframework.com/docs/concepts/di.html)`callableResolver`Instance of `\Slim\Interfaces\CallableResolverInterface`.Extended services
-----------------

[](#extended-services)

This *service provider* registers the `Slim\App` in the `MiddlewareListServiceProvider::MIDDLEWARES_QUEUE`.

Service nameDescription`MiddlewareListServiceProvider::MIDDLEWARES_QUEUE`Adds the Slim app to this queue (to be used by external routers)

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity42

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3464d ago

### Community

Maintainers

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

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

---

Top Contributors

[![moufmouf](https://avatars.githubusercontent.com/u/1290952?v=4)](https://github.com/moufmouf "moufmouf (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/thecodingmachine-slim-universal-module/health.svg)

```
[![Health](https://phpackages.com/badges/thecodingmachine-slim-universal-module/health.svg)](https://phpackages.com/packages/thecodingmachine-slim-universal-module)
```

###  Alternatives

[oat-sa/tao-core

TAO core extension

66143.7k119](/packages/oat-sa-tao-core)[zubzet/framework

 A lightweight PHP framework focused on rapid development, ease of use, and great portability.

1370.4k1](/packages/zubzet-framework)[vesp/core

Vesp core library to make backend simple

243.9k5](/packages/vesp-core)[duxweb/dux-lite

The lightweight framework based on slim php

161.0k9](/packages/duxweb-dux-lite)

PHPackages © 2026

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