PHPackages                             loso/di-annotations-bundle - 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. loso/di-annotations-bundle

ActiveSymfony-bundle[Framework](/categories/framework)

loso/di-annotations-bundle
==========================

A bundle that enables Dependency Injection by annotations into your Symfony2 projects.

1443PHP

Since Dec 20Pushed 13y agoCompare

[ Source](https://github.com/loicfrering/LosoDiAnnotationsBundle)[ Packagist](https://packagist.org/packages/loso/di-annotations-bundle)[ RSS](/packages/loso-di-annotations-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

LosoDiAnnotationsBundle
=======================

[](#losodiannotationsbundle)

What is LosoDiAnnotationsBundle?
--------------------------------

[](#what-is-losodiannotationsbundle)

A bundle that enables Dependency Injection by annotations into your Symfony2 projects.

[![Build Status](https://camo.githubusercontent.com/7bf7d613563c54d2ad29c673d289f8c5a5a020722221cda0fd1722f52b628c88/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6c6f696366726572696e672f4c6f736f4469416e6e6f746174696f6e7342756e646c652e706e67)](http://travis-ci.org/loicfrering/LosoDiAnnotationsBundle)

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

[](#requirements)

LosoDiAnnotationsBundle requires PHP 5.3 or later. It has been tested with **Symfony v2.0.4**.

You will need at least the following libraries in your vendor directory:

- Doctrine\\Common
- Symfony

If you want to use the functionalities around entity repositories, you will also need:

- Doctrine\\DBAL
- Doctrine\\ORM

License
-------

[](#license)

The files in this archive are released under the MIT license. You can find a copy of this license in the LICENSE file.

Documentation
-------------

[](#documentation)

You can read the documentation in [Resources/doc/index.rst](https://github.com/loicfrering/LosoDiAnnotationsBundle/tree/master/Resources/doc/index.rst)

Tests
-----

[](#tests)

LosoDiAnnotationsBundle is heavily tested! To run the tests, you'll need to set the path to the vendors libraries in Tests/bootstrap.php and run the following command from the project's root:

```
phpunit --colors --bootstrap Tests/bootstrap.php Tests

```

Also LosoDiAnnotationsBundle uses Travis for continuous integration, see: [![Build Status](https://camo.githubusercontent.com/7bf7d613563c54d2ad29c673d289f8c5a5a020722221cda0fd1722f52b628c88/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6c6f696366726572696e672f4c6f736f4469416e6e6f746174696f6e7342756e646c652e706e67)](http://travis-ci.org/loicfrering/LosoDiAnnotationsBundle)

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

[](#installation)

1\. Add LosoDiAnnotationsBundle to your vendor libraries:

```
$ cp -r /LosoDiAnnotationsBundle vendor/bundles/Loso/Bundle/DiAnnotationsBundle
```

Or via Git:

```
$ git submodule add git://github.com/loicfrering/LosoDiAnnotationsBundle.git vendor/bundles/Loso/Bundle/DiAnnotationsBundle
```

2\. Register Loso namespace with the autoloader in app/autoload.php:

```
