PHPackages                             mparaiso/doctrineormserviceprovider - 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. mparaiso/doctrineormserviceprovider

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

mparaiso/doctrineormserviceprovider
===================================

Doctrine ORM for Silex

0.0.22(11y ago)03101MITPHPPHP &gt;=5.3.3

Since Mar 24Pushed 11y agoCompare

[ Source](https://github.com/Mparaiso/doctrineormserviceprovider)[ Packagist](https://packagist.org/packages/mparaiso/doctrineormserviceprovider)[ Docs](https://github.com/Mparaiso/doctrineormserviceprovider)[ RSS](/packages/mparaiso-doctrineormserviceprovider/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (4)Versions (17)Used By (1)

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

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

[![Build Status](https://camo.githubusercontent.com/4a2bd4d78612e5c293b33155b4f660fa006fc46805e7f8ca03c91a61338d9f07/68747470733a2f2f7472617669732d63692e6f72672f4d7061726169736f2f646f637472696e656f726d7365727669636570726f76696465722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/Mparaiso/doctrineormserviceprovider)

Doctrine ORM silex extension
----------------------------

[](#doctrine-orm-silex-extension)

author : M.Paraiso contact:

status: work in progress

helps use Doctrine ORM with silex

##### Configuration

[](#configuration)

here is a configuration exemple for silex:

```
$app->register(new ConsoleServiceProvider); // to manage entities through command line.
$app->register(new DoctrineServiceProvider,array(
        "db.options"=> array(
            "dbname"   =>  getenv("DBNAME"),
            "user"     => getenv("USER"),
            "password" => getenv("PASSWORD"),
            "host"     => getenv("_HOST"),
            "driver"   => "pdo_mysql",
)));

$app->register(new DoctrineORMServiceProvider, array(
       "orm.driver.configs"    => array(
           "default" => array(
               "namespace"=>"Entity",  // rootnamespace of your entities
               "type"  => "yaml", // driver type (yaml,xml,annotation)
               "paths" => array(__DIR__ . '/doctrine'), // config file path
           )
       )
   ));

```

Services :

- orm.em : EntityManager
- orm.manager\_registry : Manager registry

FEATURES
--------

[](#features)

### Date Function

[](#date-function)

exemple : `select j from Job j where j.createdAt = date("2008-12-26")`

### FixtureLoader

[](#fixtureloader)

load fixtures from a yaml file

#### Usage

[](#usage)

given the following yaml file :

/\*

```
## fixture example :

# !!!! all references must be declared BEFORE used !!!!!

# the root node
fixtures:
  # a fixture
  - entity: Entity\Rdv\Rsvp
    # the class
    name: jacob
    # the fixture reference name (optional)
    fields:
      # the fixture properties
      attendeeName: jacob

  - entity: Entity\Rdv\Dinner
    name: 'German dinner'
    fields:
      country: Germany
      latitude: 10
      longitude: 23
      contactPhone: 911-343-333
      address: Berlin
      description: Sausages
      title: Kraut party
      hostedBy: Von Brohm
      eventDate: { datetime: 2013-10-20 }
      # will be parsed as a DateTime object
      rsvps: [ jacob ]
      # will be parsed as an ArrayCollection , fixtures are references by their names
      # references must be declared BEFORE they are USED !!!!

  - entity: Entity\Rdv\Rsvp
    name: jean
    fields:
      attendeeName: jean
      dinner: %German dinner%
      # a reference to another fixture  , with its name surrounded by quotes
```

```
        $em = app['orm.em'] // given a EntityManager
        $loader = new Mparaiso\Doctrine\ORM\FixtureLoader(__DIR__ . '/fixtures/dinners.yml');
        // get entities from fixtures
        $entities = $loader->parse();
        // persist fixtures
        $loader->persistFixtures($em);
        // remove fixtures
        $loader->removeFixtures($em);
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

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.

###  Release Activity

Cadence

Every ~41 days

Recently: every ~124 days

Total

14

Last Release

4317d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1152066?v=4)[mparaiso](/maintainers/Mparaiso)[@Mparaiso](https://github.com/Mparaiso)

---

Tags

ormdoctrineextensionssilex

### Embed Badge

![Health badge](/badges/mparaiso-doctrineormserviceprovider/health.svg)

```
[![Health](https://phpackages.com/badges/mparaiso-doctrineormserviceprovider/health.svg)](https://phpackages.com/packages/mparaiso-doctrineormserviceprovider)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M378](/packages/easycorp-easyadmin-bundle)[gedmo/doctrine-extensions

Doctrine behavioral extensions

4.1k122.6M412](/packages/gedmo-doctrine-extensions)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8405.5M96](/packages/laravel-doctrine-orm)[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58825.2M48](/packages/scienta-doctrine-json-functions)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[dflydev/doctrine-orm-service-provider

Doctrine ORM Service Provider

2131.8M35](/packages/dflydev-doctrine-orm-service-provider)

PHPackages © 2026

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