PHPackages                             dflydev/doctrine-orm-service-provider - 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. [Database &amp; ORM](/categories/database)
4. /
5. dflydev/doctrine-orm-service-provider

ActiveLibrary[Database &amp; ORM](/categories/database)

dflydev/doctrine-orm-service-provider
=====================================

Doctrine ORM Service Provider

v2.0.1(10y ago)2081.7M↓25.5%57[14 issues](https://github.com/dflydev/dflydev-doctrine-orm-service-provider/issues)[8 PRs](https://github.com/dflydev/dflydev-doctrine-orm-service-provider/pulls)20MITPHPPHP &gt;=5.3.3

Since Dec 30Pushed 3y ago8 watchersCompare

[ Source](https://github.com/dflydev/dflydev-doctrine-orm-service-provider)[ Packagist](https://packagist.org/packages/dflydev/doctrine-orm-service-provider)[ Docs](http://dflydev.com/projects/doctrine-orm-service-provider/)[ RSS](/packages/dflydev-doctrine-orm-service-provider/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (2)Versions (12)Used By (20)

Doctrine ORM Service Provider
=============================

[](#doctrine-orm-service-provider)

Provides Doctrine ORM Entity Managers as services to Pimple applications.

Features
--------

[](#features)

- Leverages the core [Doctrine Service Provider](http://silex.sensiolabs.org/doc/providers/doctrine.html) for either Silex.
- Default Entity Manager can be bound to any database connection
- Multiple Entity Managers can be defined
- Mechanism for allowing Service Providers to register their own mappings

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

[](#requirements)

- PHP 5.3+
- Pimple ~2.1
- Doctrine ~2.3

Currently requires both **dbs** and **dbs.event\_manager** services in order to work. These can be provided by a Doctrine Service Provider like the [Silex](http://silex.sensiolabs.org/doc/providers/doctrine.html) one. If you can or want to fake it, go for it. :)

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

[](#installation)

Through [Composer](http://getcomposer.org) as [dflydev/doctrine-orm-service-provider](https://packagist.org/packages/dflydev/doctrine-orm-service-provider).

Usage
-----

[](#usage)

To get up and running, register `DoctrineOrmServiceProvider` and manually specify the directory that will contain the proxies along with at least one mapping.

In each of these examples an Entity Manager that is bound to the default database connection will be provided. It will be accessible via **orm.em**.

```
