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

Laravel Themer Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Installation

Requirements

  • PHP 8.2 or higher
  • Laravel 11.0 or 12.0
  • Composer

Installation Steps

1. Install via Composer

composer require alizharb/laravel-themer

The package will automatically register its service provider via Laravel's package discovery.

2. Run the Install Command

php artisan themer:install

This command will:

  • Publish the configuration file to config/themer.php
  • Create the themes/ directory in your project root
  • Configure NPM Workspaces in your root package.json for optimized theme asset management
  • Set up Vite integration for theme asset compilation

3. Configure Your Environment

Add the active theme to your .env file:

THEME=default

4. Create Your First Theme

php artisan theme:make MyTheme --description="My awesome theme" --author="Your Name"

This generates a complete theme structure with:

  • theme.json metadata file
  • View directories (resources/views)
  • Asset directories (resources/assets)
  • Language files (lang)
  • Livewire component directories (app/Livewire)
  • package.json and vite.config.js for asset compilation

5. Activate Your Theme

php artisan theme:activate MyTheme

This will:

  • Update your .env file with THEME=mytheme
  • Publish theme assets to public/themes/mytheme
  • Clear theme caches

Verification

To verify your installation:

php artisan theme:list

You should see your newly created theme listed with its metadata.

Optional: Generate Service Provider

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.

Next Steps

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.
besmartand-pro/php-quality-config
sentix/ai-chatbot
codifyo/ts-generator-bundle
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor