Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Theme Bundle Modern

Theme Bundle Modern Laravel Package

agg/theme-bundle-modern

View on GitHub
Deep Wiki
Context7

Provides theming support for #Symfony2 Bundles

Frequently asked questions about Theme Bundle Modern
Can I use ModernTheme with Laravel 10+ for dynamic theming?
No, ModernTheme is designed for Symfony2 and relies on Twig, which is incompatible with Laravel’s Blade templating engine. Laravel’s theming system (e.g., `view()->theme()` or middleware) is fundamentally different, requiring a full rewrite or a complex wrapper layer.
What Laravel alternatives exist for Symfony2-style theming?
For Laravel, consider packages like `spatie/laravel-themes` or `orchid/laravel-themes`, which support dynamic theming without Symfony2 dependencies. Native Laravel solutions (e.g., middleware-based theme switching) are often lighter and more maintainable.
How do I install ModernTheme in Laravel via Composer?
You *can’t* directly install ModernTheme in Laravel due to architectural conflicts. It requires Symfony2’s kernel, Twig, and Bundle system, which Laravel doesn’t support. Attempting to force-install will break autoloading and templating.
Will ModernTheme work with PHP 8.1+ (required for Laravel 10)?
No, ModernTheme hasn’t been updated since 2018 and targets PHP 5.5.9+, which is incompatible with Laravel 10’s PHP 8.1+ requirement. The package lacks modern PHP support and would need significant refactoring.
Can I bridge Twig (ModernTheme) with Blade in Laravel?
Technically, you could use `spatie/laravel-twig` to render Twig templates, but this adds complexity and performance overhead. Blade and Twig are fundamentally different, and mixing them risks template inheritance issues and maintenance headaches.
Does ModernTheme support Livewire or Inertia.js theming?
No, ModernTheme is file-system based and lacks integration with Laravel’s modern frontend ecosystems like Livewire or Inertia.js. These tools rely on dynamic Blade components, which ModernTheme cannot provide.
What’s the best way to migrate from Symfony2 theming to Laravel?
Replace Symfony2’s `ThemeBundle` with Laravel-native solutions like `view()->theme()` middleware or packages like `laravel-themes`. For complex projects, consider a custom theming service using Laravel’s `View` facade and cached views for performance.
Is ModernTheme actively maintained or secure?
ModernTheme is abandoned (last update: 2018) and lacks security patches. Using it introduces risks like unpatched vulnerabilities and compatibility issues with modern Laravel or PHP versions. Prioritize maintained alternatives.
How does ModernTheme handle theme switching vs. Laravel’s approach?
ModernTheme uses static filesystem overrides (e.g., `/Resources/views/`), while Laravel dynamically switches themes via middleware or service providers. Laravel’s approach is more flexible for per-user or route-based theming without recompiling templates.
What’s the performance impact of using ModernTheme in Laravel?
ModernTheme’s filesystem-based theming would introduce latency compared to Laravel’s cached Blade views. Dynamic theming in Laravel (e.g., middleware) is optimized for low TTFB, whereas ModernTheme’s static approach could slow down theme switches.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
make-dev/orca
dmstr/symfony-system-resources-bundle
dmstr/symfony-job-queue-bundle
dmstr/openapi-json-schema-bundle
dmstr/keycloak-security-bundle
dmstr/doctrine-audit-log-bundle
dmstr/api-platform-utils-bundle
dmstr/api-configuration-bundle
chrisdev/ux-components
baks-dev/finances
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle