a SENSIOLABS Product
Symfony

Dependency Injection
Reinventing how you manage
PHP classes

Symfony Dependency Injection is a PHP library that provides a lightweight and robust Dependency Injection Container for classes that implements the Dependency Injection pattern.

Fast

One of the goal of Symfony Dependency Injection is to be as fast as possible. With the possibility to dump any container to a plain PHP file, you can use the library without any overhead whatsoever, certified.

Open-Source

Released under the MIT license, you are free to do whatever you want, even in a commercial environment. You are also encouraged to contribute.

Built on the shoulders of giants

Symfony Dependency Injection has its roots in the great Spring framework. But instead of being a straight port of a Java container, the library has been rethought and redesigned to take into account the PHP platform specificities.

Easy to use

There is only one archive to download, and you are ready to go. No configuration, and no installation. Drop the files in a directory and start using it today in your projects.

Fun to use

Thanks to the great flexibility of the library, Symfony Dependency Injection comes bundled with a Graphviz dumper, allowing you to visualize the graph of your objects and ease the debugging of your container.

Used by popular Projects

Symfony Dependency Injection is one of the fundamental library behind the Symfony 2 framework. It is also used by many other big "enterprise-like" projects.

Documented

Symfony Dependency Injection is fully documented, with a dedicated online book, and of course a full API documentation.

Unit tested

The library is fully unit-tested. With 100% code coverage, the library is stable and ready to be used in large projects.

Flexible

Symfony Dependency Injection is flexible enough for all your needs, even the most complex ones. Thanks to an open architecture, you can implement your own dumpers and loaders (by default, it comes with full support for XML, YAML, PHP, INI, and Graphviz).

Who is behind Symfony Dependency Injection?

The Symfony Dependency Injection library is being developed and maintained by the symfony project team. It has been extracted from symfony to be used as a standalone library. Symfony Dependency Injection is part of the symfony components project.

powered by symfony - "symfony" is a trademark of Fabien Potencier, all rights reserved - The components "animals" are © 2009 Sensio Labs

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.