antidot-fw / doctrine
Antidot Framework doctrine orm integration library
Fund package maintenance!
kpicaza
Requires
- php: ^7.4|^8.0
- antidot-fw/cli: ^1.0.0
- psr/container: ^1.0.0
- roave/psr-container-doctrine: ^2.2|@dev
Requires (Dev)
- doctrine/migrations: ^2.0
- infection/infection: ^0.21.0
- phpro/grumphp: ^1.0
- phpstan/phpstan: ^0.11.5 || ^0.12.0
- phpunit/phpunit: ^8.0 || ^9.0
- squizlabs/php_codesniffer: ^3.4
- symfony/var-dumper: ^4.2 || ^5.0
- vimeo/psalm: ^4.4
README
Integration library between Doctrine ORM and Antidot Framework using Roave PSR-11 Doctrine factories.
Requirements
- PHP ^7.4|^8.0 for current
Install
Install using composer.
composer require antidot-fw/doctrine
Default Config in Antidot Framework Starter
Doctrine integration requires a minimum config to work, by default it is configured with the SimplifiedYamlDriver
.
When you need more complex or more custom config you can implement it without ani issues following doctrine docs.
# Example using PDOSqliteDriver, and allocating yaml files at `config/doctrine` # directory for `App\Domain\Model` namespace. parameters: doctrine: connection: orm_default: driver_class: Doctrine\DBAL\Driver\PDOSqlite\Driver params: path: var/database.sqlite driver: orm_default: paths: config/doctrine: App\Domain\Model