alizharb/laravel-themer
Enterprise-grade theme management for Laravel. Create, clone, activate, and safely delete themes with per-theme Vite builds, NPM workspaces, asset shortcuts, view overrides, and Livewire 4 support. Includes metadata, wizards, and fast production caching.
composer require alizharb/laravel-themer
The package will automatically register its service provider via Laravel's package discovery.
php artisan themer:install
This command will:
config/themer.phpthemes/ directory in your project rootpackage.json for optimized theme asset managementAdd the active theme to your .env file:
THEME=default
php artisan theme:make MyTheme --description="My awesome theme" --author="Your Name"
This generates a complete theme structure with:
theme.json metadata fileresources/views)resources/assets)lang)app/Livewire)package.json and vite.config.js for asset compilationphp artisan theme:activate MyTheme
This will:
.env file with THEME=mythemepublic/themes/mythemeTo verify your installation:
php artisan theme:list
You should see your newly created theme listed with its metadata.
If you need custom theme logic (bindings, events, middleware), generate a namespaced service provider:
php artisan theme:make MyTheme --provider
This creates themes/mytheme/ThemeServiceProvider.php with namespace Theme\MyTheme\ThemeServiceProvider.
How can I help you explore Laravel packages today?