PHPackages                             cdx/sf-dependency-injection-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. cdx/sf-dependency-injection-bridge

ActiveLibrary[Framework](/categories/framework)

cdx/sf-dependency-injection-bridge
==================================

Symfony dependency injection bridge into ZF2

010PHP

Since Jul 10Pushed 10y ago1 watchersCompare

[ Source](https://github.com/CDaigneaux/SfDependencyInjectionBridge)[ Packagist](https://packagist.org/packages/cdx/sf-dependency-injection-bridge)[ RSS](/packages/cdx-sf-dependency-injection-bridge/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Sf Dependency Injection Bridge
==============================

[](#sf-dependency-injection-bridge)

[![Build Status](https://camo.githubusercontent.com/c5b165623ff81e41086dbc592fc91a710ec04f0e3153b3f782c84016c41c5f96/68747470733a2f2f7472617669732d63692e6f72672f43446169676e656175782f5366446570656e64656e6379496e6a656374696f6e4272696467652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/CDaigneaux/SfDependencyInjectionBridge)

Zf2 module to use Symfony Dependency Injection ([symfony/dependency-injection](https://github.com/symfony/DependencyInjection)).

Requirements
------------

[](#requirements)

Please see the [composer.json](composer.json) file.

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

[](#installation)

You can install using:

```
curl -s https://getcomposer.org/installer | php
php composer.phar install
```

You can import the `sf-dependency-injection-bridge` module into an existing application by adding `cdx/sf-dependency-injection-bridge` to your `composer.json` "require" section. You should also add the module to your application's configuration:

```
'modules' => array (
    /* ... */
    'Cdx\SfDependencyInjectionBridge',
),
```

Configuration
-------------

[](#configuration)

This module load each module configuration files to search the `sf_dependency_injection_bridge` key. To add an dependency you should set in the module configuration file:

```
return array (
    'router' => /* ... */
    'service_manager' => /* ... */
    /* ... */
    'sf_dependency_injection_bridge' => [
        'config_files' => [
            __DIR__ . '/services.yml',
            /* ... */
        ],
        'service_locator_mapping' => [
            'Doctrine\\ORM\\EntityManager' => 'Doctrine\\ORM\\EntityManager',
            /* ... */
        ]
    ],
```

You can specify any service loaded in service locator to set them onto the ContainerBuilder of Symfony. Moreover, you can load any file you want in Yaml format to load services onto it too.

See documentation of [Symfony Dependency Injection](http://symfony.com/fr/doc/current/components/dependency_injection/introduction.html).

###  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 55.9% 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/d3734ecd5f081e448dbe88b00a9d2d54d78c569a9899aa12ed89832f7074d7ff?d=identicon)[CDaigneaux](/maintainers/CDaigneaux)

---

Top Contributors

[![CDaigneaux](https://avatars.githubusercontent.com/u/5547650?v=4)](https://github.com/CDaigneaux "CDaigneaux (19 commits)")[![neeckeloo](https://avatars.githubusercontent.com/u/1768645?v=4)](https://github.com/neeckeloo "neeckeloo (15 commits)")

### Embed Badge

![Health badge](/badges/cdx-sf-dependency-injection-bridge/health.svg)

```
[![Health](https://phpackages.com/badges/cdx-sf-dependency-injection-bridge/health.svg)](https://phpackages.com/packages/cdx-sf-dependency-injection-bridge)
```

###  Alternatives

[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

712181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)[laravel/pail

Easily delve into your Laravel application's log files directly from the command line.

91545.3M590](/packages/laravel-pail)

PHPackages © 2026

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