PHPackages                             skar/laminas-doctrine-orm - 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. skar/laminas-doctrine-orm

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

skar/laminas-doctrine-orm
=========================

Simple Laminas/Mezzio Doctrine ORM integration

0.2(2y ago)123746BSD-3-ClausePHPPHP ^8.1 || ^8.2 || ^8.3

Since Jun 13Pushed 1y ago2 watchersCompare

[ Source](https://github.com/skar/laminas-doctrine-orm)[ Packagist](https://packagist.org/packages/skar/laminas-doctrine-orm)[ RSS](/packages/skar-laminas-doctrine-orm/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (8)Versions (3)Used By (0)

Laminas Doctrine ORM
====================

[](#laminas-doctrine-orm)

Simple Laminas/Mezzio Doctrine ORM integration.

Please feel free to report bugs and missing features.

Using
=====

[](#using)

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

[](#configuration)

Create config file `config/autoload/doctrine.global.php` with minimal config:

- `doctrine` - Key for doctrine config
    - `connection`
        - `orm_default`
            - `driver_class` - The full name of `\Doctrine\DBAL\Driver` implementation
            - `params` - The connection driver [parameters](https://www.doctrine-project.org/projects/doctrine-dbal/en/current/reference/configuration.html)
    - `driver` - Mapping driver configuration
        - `orm_default`
            - `drivers`
                - Key must be a namespace for entities (e.g. `App\Entity`)
                    - `class` - The full name of [the metadata driver](https://www.doctrine-project.org/projects/doctrine-orm/en/current/reference/metadata-drivers.html#metadata-drivers)
                    - `paths` - An array of directories containing your [entities](https://www.doctrine-project.org/projects/doctrine-orm/en/current/reference/basic-mapping.html#basic-mapping)

See [the Doctrine documentation](https://www.doctrine-project.org/projects/doctrine-dbal/en/2.7/reference/configuration.html)for more possible configurations.

### Example Configuration

[](#example-configuration)

```
