https://github.com/chubbyphp/chubbyphp-laminas-config-doctrine
Doctrine service factories for the laminas/laminas-servicemanager and any other dependency injection container who's been able to handle it's config, like chubbyphp/chubbyphp-container via chubbyphp/chubbyphp-laminas-config and many (Aura.Di, Pimple, Auryn, Symfony, PHP-DI) more.
https://github.com/chubbyphp/chubbyphp-laminas-config-doctrine
cache chubbyphp dbal doctrine factory laminas-servicemanager mezzio mongodb odm orm psr-11
Last synced: 8 days ago
JSON representation
Doctrine service factories for the laminas/laminas-servicemanager and any other dependency injection container who's been able to handle it's config, like chubbyphp/chubbyphp-container via chubbyphp/chubbyphp-laminas-config and many (Aura.Di, Pimple, Auryn, Symfony, PHP-DI) more.
- Host: GitHub
- URL: https://github.com/chubbyphp/chubbyphp-laminas-config-doctrine
- Owner: chubbyphp
- License: mit
- Created: 2020-08-23T14:51:21.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-03-12T14:09:22.000Z (about 1 month ago)
- Last Synced: 2025-04-06T18:09:00.022Z (15 days ago)
- Topics: cache, chubbyphp, dbal, doctrine, factory, laminas-servicemanager, mezzio, mongodb, odm, orm, psr-11
- Language: PHP
- Homepage:
- Size: 188 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# chubbyphp-laminas-config-doctrine
[](https://github.com/chubbyphp/chubbyphp-laminas-config-doctrine/actions/workflows/ci.yml)
[](https://coveralls.io/github/chubbyphp/chubbyphp-laminas-config-doctrine?branch=master)
[](https://dashboard.stryker-mutator.io/reports/github.com/chubbyphp/chubbyphp-laminas-config-doctrine/master)
[](https://packagist.org/packages/chubbyphp/chubbyphp-laminas-config-doctrine)
[](https://packagist.org/packages/chubbyphp/chubbyphp-laminas-config-doctrine)
[](https://packagist.org/packages/chubbyphp/chubbyphp-laminas-config-doctrine)[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config-doctrine)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config-doctrine)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config-doctrine)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config-doctrine)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config-doctrine)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config-doctrine)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config-doctrine)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config-doctrine)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config-doctrine)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config-doctrine)
[](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config-doctrine)## Description
Doctrine service factories for the [laminas/laminas-servicemanager][2] and any other dependency injection container
who's been able to handle it's config, like [chubbyphp/chubbyphp-container][3] via [chubbyphp/chubbyphp-laminas-config][4]
and many (Aura.Di, Pimple, Auryn, Symfony, PHP-DI) more.The original concept of this service factories is by [@DASPRiD][5] used in [dasprid/container-interop-doctrine][6]
which was handed over to [roave/psr-container-doctrine][7].Small adjustments like using class names instead `doctrine.something...` strings as service names
and the possiblity to install only the needed vendors make the difference to the original project.## Requirements
* php: 8.2
* [chubbyphp/chubbyphp-laminas-config-factory][10]: ^1.4
* [doctrine/common][11]: ^3.5
* [doctrine/event-manager][12]: ^2.0.1
* [psr/container][13]: ^1.1.2|^2.0.2
* [symfony/cache][14]: ^5.4.46|^6.4.18|^7.2.3
* [symfony/console][14]: ^5.4.47|^6.4.17|^7.2.1## Suggested
* [doctrine/dbal][20]: ^4.2.2
* [doctrine/mongodb-odm][21]: ^2.10.1
* [doctrine/orm][22]: ^3.3.2
* [mongodb/mongodb][23]: ^1.20## Installation
Through [Composer](http://getcomposer.org) as [chubbyphp/chubbyphp-laminas-config-doctrine][1].
```sh
composer require chubbyphp/chubbyphp-laminas-config-doctrine "^3.0"
```## Usage
### MongodbODM
* [Single connection][30]
* [Multiple connection][31]### ORM
* [Single connection][32]
* [Multiple connection][33]## Copyright
2025 Dominik Zogg
[1]: https://packagist.org/packages/chubbyphp/chubbyphp-laminas-config-doctrine
[2]: https://packagist.org/packages/laminas/laminas-servicemanager
[3]: https://packagist.org/packages/chubbyphp/chubbyphp-container
[4]: https://packagist.org/packages/chubbyphp/chubbyphp-laminas-config
[5]: https://github.com/DASPRiD
[6]: https://packagist.org/packages/dasprid/container-interop-doctrine
[7]: https://packagist.org/packages/roave/psr-container-doctrine[10]: https://packagist.org/packages/chubbyphp/chubbyphp-laminas-config-factory
[11]: https://packagist.org/packages/doctrine/common
[12]: https://packagist.org/packages/doctrine/event-manager
[13]: https://packagist.org/packages/psr/container
[14]: https://packagist.org/packages/symfony/cache
[15]: https://packagist.org/packages/symfony/console[20]: https://packagist.org/packages/doctrine/dbal
[21]: https://packagist.org/packages/doctrine/mongodb-odm
[22]: https://packagist.org/packages/doctrine/orm
[23]: https://packagist.org/packages/mongodb/mongodb[30]: doc/DocumentManager.md
[31]: doc/DocumentManagers.md
[32]: doc/EntityManager.md
[33]: doc/EntityManagers.md