adcog-cpi/doctrine-bundle
Doctrine bundle providing reusable entity tools: automatic created/updated timestamps, slug and salt generation, filesystem storage paths, loggable messages, and paginator defaults. Includes a command to fix/rebuild slugs across the database.
use_env_discriminator).persisted, updated) could streamline audit logging in Laravel’s Log facade or custom event listeners.default_limit, max_limit) mirror Laravel’s Illuminate\Pagination but may conflict with existing implementations (e.g., SimplePaginator).Kernel, Container, and EventDispatcher—Laravel alternatives (e.g., App\Providers, Event facade) require mapping.doctrine/dbal or laravel-doctrine/orm. The bundle’s loggable feature could integrate with Laravel’s Model events (creating, updating, deleted).Storage facade (filesystem config) could replace Symfony’s web_path/secured_path with minimal refactoring.Paginator is more mature; bundle’s use_output_walker may be redundant.Bundle class and Extension interface. Laravel’s service providers (Illuminate\Support\ServiceProvider) would need wrappers.Model::registerModelEvent)..env or config/eb_doctrine.php could mirror it.filesystem config or packages like spatie/laravel-medialibrary?laravel-auditlog package)?output_walker) a critical feature?observers, accessors for logging).Paginator is optimized for Blade/JSON responses; bundle’s output_walker may not align.EventDispatcher vs. Laravel’s Event facade requires mapping (e.g., via symfony/event-dispatcher package).Storage facade usage) and CRUD logging (e.g., custom listeners).spatie/laravel-activitylog for auditing).ServiceProvider structure.Storage::disk().Log facade.Illuminate\Pagination\LengthAwarePaginator.filesystem config.loggable via Doctrine event subscribers (map Symfony events to Laravel).| Feature | Laravel Equivalent | Compatibility Risk |
|---|---|---|
| Filesystem paths | Storage facade |
Low |
| CRUD logging | Model observers + Log facade |
Medium |
| Pagination | Paginator |
High |
Symfony Bundle |
ServiceProvider |
Critical |
doctrine/dbal, laravel-doctrine/orm).local, s3).config/eb_doctrine.php).spatie/laravel-medialibrary or custom Storage logic.laravel-auditlog or spatie/laravel-activitylog.Paginator.use_env_discriminator) adds minimal overhead.output_walker may not optimize for Laravel’s caching (e.g., Cache::remember).| Scenario | Impact | Mitigation |
|---|---|---|
| Bundle update breaks Laravel | Integration fails | Fork and pin version |
| Filesystem path misconfiguration | Uploads/logs fail silently | Add validation in ServiceProvider |
| Doctrine event listener errors | Logs/pagination fail | Wrap in try-catch with fallback |
| Pagination conflicts | API/Blade responses break | Disable bundle’s paginator |
Model events.output_walker.eb_doctrine.php.Storage::put() with bundle paths).secured_path permissions are set up (e.g., cache/files writable).prePersist → creating).extend() or macro() methods.How can I help you explore Laravel packages today?