- Can I use aequation/labo in Laravel instead of Symfony?
- No, this bundle is designed exclusively for Symfony and relies on its bundle system, DependencyInjection, and Twig integration—all incompatible with Laravel’s Service Providers, Blade templating, and Eloquent. Attempting to integrate it would require a full rewrite of its core architecture.
- What Laravel alternatives provide similar centralized configuration setup?
- For Laravel, use packages like `spatie/laravel-package-tools` for scaffolding, `laravel/config` for centralized config management, or `spatie/laravel-activitylog` for structured logging. These align with Laravel’s ecosystem without Symfony dependencies.
- How do I extract framework-agnostic utilities from aequation/labo for Laravel?
- Identify standalone classes (e.g., helper functions, validation rules) in the bundle’s source, publish them as a new Composer package (e.g., `aequation/helpers`), and install it in Laravel. Avoid Symfony-specific components like `Bundle` classes or `EventDispatcher` integrations.
- Will aequation/labo work with Laravel’s Service Container?
- No, the bundle assumes Symfony’s DependencyInjection container. Laravel’s Service Container uses a different syntax and lacks Symfony’s `Extension` and `CompilerPass` features. You’d need to rewrite service wiring manually or use Laravel’s native `bind()`/`singleton()` methods.
- Does aequation/labo support Laravel’s Eloquent or Blade instead of Doctrine/Twig?
- Absolutely not. The bundle is hardcoded for Doctrine ORM and Twig, which are irrelevant in Laravel. If you need database utilities, use Eloquent or packages like `spatie/laravel-doctrine-orm` (a bridge), but avoid mixing Symfony’s ORM layer.
- How do I test aequation/labo’s extracted components in Laravel?
- Use Laravel’s built-in testing tools (PHPUnit + Pest) to verify extracted utilities. Mock Laravel-specific dependencies (e.g., `Log::channel()`) and avoid Symfony’s `ContainerInterface` or `EventDispatcher` in tests. Focus on framework-agnostic logic.
- Are there production risks if I partially integrate aequation/labo?
- Yes, high risks include dependency conflicts (e.g., Symfony’s `monolog` vs. Laravel’s `log`), routing clashes, and undefined behavior in Laravel’s event system. Only use extracted, framework-agnostic code—never Symfony-specific bundles or services.
- Can I replace Symfony’s Swiftmailer in Laravel with aequation/labo?
- No, the bundle’s mail integration is Symfony-centric. Use Laravel’s native `Mail` facade or packages like `spatie/laravel-mail` instead. These are optimized for Laravel’s queue system, Blade emails, and Markdown templates.
- What’s the maintenance cost of porting aequation/labo to Laravel?
- Extremely high. You’d need to rewrite bundle configurations (Symfony’s `Resources/config` → Laravel’s `config/`), replace `EventDispatcher` with Laravel’s events, and handle Doctrine ↔ Eloquent mappings. Consider building a lightweight Laravel package from scratch instead.
- Does aequation/labo offer admin panel scaffolding for Laravel?
- No, the bundle’s admin tools (if any) are Symfony-specific. For Laravel, use packages like `backpack/crud`, `filamentphp/filament`, or `orchid/software`—all designed for Laravel’s Blade, Eloquent, and middleware stack.