business-decision/doctrine-filters-bundle
doctrine/orm or laravel-doctrine/orm) instead of Eloquent.symfony/serializer, api-platform/core) are already integrated or planned.FilterCollection, Filter interfaces).nelmio/api-doc-bundle alternatives).| Dependency | Laravel Equivalent/Status | Risk Level |
|---|---|---|
doctrine/orm |
doctrine/orm (via Laravel Doctrine packages) |
Low |
symfony/dependency-injection |
Laravel’s Illuminate/Container |
High |
api-platform/core |
None (would need custom API layer) | Critical |
symfony/serializer |
symfony/serializer or nesbot/carbon |
Medium |
| Twig/PhpTemplates | Blade or custom templating | Low |
ContainerAware or CompilerPass system. Workarounds (e.g., custom bridges) would be required.EventDispatcherInterface) differs from Laravel’s Illuminate/Events.spatie/laravel-fractal + custom filters).Filter classes to Laravel’s DI.spatie/laravel-query-builder (for Eloquent).darkaonline/l5-swagger + custom filters.beberlei/doctrineextensions (for Doctrine in Laravel).serializer, event-dispatcher) without bloating the stack?doctrine/orm + laravel-doctrine/orm packages.symfony/dependency-injection, symfony/event-dispatcher, symfony/serializer.api-platform/core (if migrating to Symfony).| Step | Action | Tools/Workarounds |
|---|---|---|
| 1 | Assess Doctrine Readiness | Install doctrine/orm and laravel-doctrine/orm. Migrate models to Doctrine entities. |
| 2 | Symfony DI Integration | Use symfony/dependency-injection as a standalone package or build a Laravel bridge (e.g., extend Illuminate/Container). |
| 3 | Event Dispatcher Bridge | Create a wrapper for Symfony’s EventDispatcherInterface to work with Laravel’s Events. |
| 4 | Filter Porting | Extract Filter classes from the bundle and adapt them to Laravel’s DI (e.g., bind interfaces to concrete implementations). |
| 5 | API Integration | Replace api-platform with a Laravel API layer (e.g., fruitcake/laravel-cors, spatie/laravel-api + custom filter middleware). |
| 6 | Testing | Validate filters work with Doctrine queries, Eloquent queries (if hybrid), and API responses. |
| Doctrine Filters Bundle Features | Laravel Compatibility | Notes |
|---|---|---|
| DQL Filtering | High (Doctrine ORM) | Works natively. |
| API Platform Integration | Low | Requires custom API layer. |
| Symfony Serializer | Medium | Can use symfony/serializer standalone. |
| Twig Templates | Low | Use Blade or custom views. |
| Compiler Passes | Low | Laravel uses ServiceProvider::boot() instead. |
EqualsFilter) manually to test integration.FilterCollection and Filter interfaces.doctrine/orm-cache).symfony/serializer vulnerabilities).ContainerException could originate from Symfony DI misconfiguration in Laravel’s context.And/Or conditions) may generate inefficient DQL.doctrine/orm-cache) or database-level optimizations (e.g., PostgreSQL MATERIALED VIEW).How can I help you explore Laravel packages today?