PHPackages                             lequi/microservicecontainer - 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. lequi/microservicecontainer

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

lequi/microservicecontainer
===========================

Microservice container

15PHP

Since Aug 20Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Simple Microservice container
=============================

[](#simple-microservice-container)

Silex Service
=============

[](#silex-service)

```
use Silex\Application;

$app = new Application();

$app->get('/hello/{username}', function($username) {
    return "Hello {$username} from silex service";
});

$app->run();
```

Slim Service
============

[](#slim-service)

```
use Slim\Slim;

$app = new Slim();

$app->get('/hello/:username', function ($username) {
    echo "Hello {$username} from slim service";
});

$app->run();
```

Flask Service
=============

[](#flask-service)

```
from flask import Flask, jsonify
app = Flask(__name__)

@app.route('/hello/')
def show_user_profile(username):
    return "Hello %s from flask service" % username

if __name__ == "__main__":
    app.run(debug=True, host='0.0.0.0', port=5000)
```

Example
=======

[](#example)

```
use Symfony\Component\Config\FileLocator;
use MSIC\Loader\YamlFileLoader;
use MSIC\Container;

$container = new Container();

$ymlLoader = new YamlFileLoader($container, new FileLocator(__DIR__));
$ymlLoader->load('container.yml');

echo $container->getService('flaskServer')->get('/hello/Gonzalo')->getBody() . "\n";
echo $container->getService('silexServer')->get('/hello/Gonzalo')->getBody() . "\n";
echo $container->getService('slimServer')->get('/hello/Gonzalo')->getBody() . "\n";
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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/0bde97b65db73121c347d0b728a99c7320b68907da3eb73a8f539c9b8a6aaa6a?d=identicon)[lequi](/maintainers/lequi)

---

Top Contributors

[![gonzalo123](https://avatars.githubusercontent.com/u/39072?v=4)](https://github.com/gonzalo123 "gonzalo123 (2 commits)")[![lequi](https://avatars.githubusercontent.com/u/3059555?v=4)](https://github.com/lequi "lequi (1 commits)")

### Embed Badge

![Health badge](/badges/lequi-microservicecontainer/health.svg)

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

###  Alternatives

[42coders/document-templates

Document template management package.

19939.5k](/packages/42coders-document-templates)

PHPackages © 2026

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