PHPackages                             php-di/silex-bridge - 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. php-di/silex-bridge

ActiveLibrary[Framework](/categories/framework)

php-di/silex-bridge
===================

PHP-DI integration in Silex

1.5.2(9y ago)2465.4k↓50%7[2 issues](https://github.com/PHP-DI/Silex-Bridge/issues)1MITPHPPHP &gt;=5.4

Since Jun 11Pushed 8y ago5 watchersCompare

[ Source](https://github.com/PHP-DI/Silex-Bridge)[ Packagist](https://packagist.org/packages/php-di/silex-bridge)[ RSS](/packages/php-di-silex-bridge/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (14)Used By (1)

PHP-DI integration with Silex
=============================

[](#php-di-integration-with-silex)

[![Build Status](https://camo.githubusercontent.com/a66f9a6a95f86bb98295d63a3e7e3e727617cb883101db3840b5e03080a9928f/68747470733a2f2f7472617669732d63692e6f72672f5048502d44492f53696c65782d4272696467652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/PHP-DI/Silex-Bridge)[![Coverage Status](https://camo.githubusercontent.com/d2054683857d506c8b3e7d097d37ad2cfc60fdd80335f6bd2085135481961d28/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f5048502d44492f53696c65782d4272696467652f62616467652e737667)](https://coveralls.io/r/PHP-DI/Silex-Bridge)

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

[](#installation)

```
$ composer require php-di/silex-bridge

```

Usage
-----

[](#usage)

In order to benefit from PHP-DI's integration in Silex, you only need to use `DI\Bridge\Silex\Application` instead of the original `Silex\Application`.

Here is the classic Silex example updated:

```
