adespresso/white-label-bundle
Symfony2 bundle for shipping white-labeled versions of a website. Configure multiple “websites” selected by domain/host or user parameters, with priorities and custom params. Provides Twig helpers: whitelabel conditional blocks, website() info, and impersonateUrl().
spatie/laravel-multitenancy).symfony/console, symfony/http-kernel) or a rewrite.ae_white_label structure may not align with Laravel’s config/ or environment-based configurations.Route::domain()) or packages like spatie/laravel-multitenancy been considered?AppKernel registration). Configuration aligns with Symfony’s YAML/XML structure.symfony/console and symfony/http-kernel as dependencies, but this is heavy and anti-pattern for Laravel.| Step | Symfony2 | Laravel (Rewritten) |
|---|---|---|
| 1. Installation | composer require adespresso/white-label-bundle |
composer require vendor/laravel-white-label (custom) |
| 2. Registration | AppKernel::registerBundles() |
config/app.php (service provider) |
| 3. Configuration | YAML/XML in config.yml |
config/whitelabel.php (Laravel-style) |
| 4. Routing | Bundle handles domain/user-param routing | Laravel middleware or Route::domain() |
| 5. Templating | Twig functions (whitelabel, website) |
Blade directives or custom helpers |
| 6. Testing | Symfony’s test tools | Laravel’s PHPUnit/Pest |
ContainerAware, EventDispatcher).ContainerInterface with Laravel’s Container).ae_white_label, test Twig functions.WhitelabelMiddleware).@whitelabel directive).config/ system.spatie/laravel-multitenancy for tenancy, middleware for branding) if rewrite is too costly.whitelabels table).php artisan route:cache) would help, but Symfony2 may need manual OPcache tuning.| Risk | Symfony2 | Laravel (Rewritten) |
|---|---|---|
| Bundle Breakage | High (abandonware) | Medium (depends on rewrite quality) |
| Configuration Errors | High (YAML/XML) | Low (Laravel’s config/ is more intuitive) |
| Routing Conflicts | Medium (Symfony’s router) | Low (Laravel’s router is more flexible) |
| Templating Issues | High (Twig dependency) | Medium (Blade alternative needed) |
| Dependency Vulnerabilities | High (outdated Symfony2) | Low (modern Laravel dependencies) |
How can I help you explore Laravel packages today?