alexandrebulete / ddd-doctrine-bundle
Symfony Bundle for DDD Doctrine Bridge - Service wiring and configuration
Package info
github.com/AlexandreBulete/ddd-doctrine-bundle
Type:symfony-bundle
pkg:composer/alexandrebulete/ddd-doctrine-bundle
1.2.0
2026-11-20 12:44 UTC
Requires
- php: ^8.4
- alexandrebulete/ddd-doctrine-bridge: ^1.4
- symfony/config: ^7.4 || ^8.0
- symfony/dependency-injection: ^7.4 || ^8.0
- symfony/framework-bundle: ^7.4 || ^8.0
Requires (Dev)
- phpstan/phpstan: ^2.1
- phpstan/phpstan-strict-rules: ^2.0
- phpunit/phpunit: ^12.0 || ^13.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Symfony Bundle for the DDD Doctrine Bridge. Provides service wiring and configuration for Doctrine integration.
Installation
composer require alexandrebulete/ddd-doctrine-bundle
Configuration
Add the bundle to your config/bundles.php:
return [ // ... AlexandreBulete\DddDoctrineBundle\DddDoctrineBundle::class => ['all' => true], ];
Features
This bundle automatically registers services from ddd-doctrine-bridge:
DoctrineRepositorybase class available for autowiringDoctrinePaginatoravailable for autowiring
Doctrine Types Registration
Register your custom Doctrine types in config/packages/doctrine.yaml:
doctrine: dbal: types: post_id: App\Post\Infrastructure\Doctrine\Type\PostIdType post_title: App\Post\Infrastructure\Doctrine\Type\PostTitleType