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

Configuration

The configuration file is located at config/themer.php after running php artisan themer:install.

Configuration Options

Themes Path

'themes_path' => base_path('themes'),

The root directory where themes are stored. Laravel Themer will scan this directory for theme.json files.

Active Theme

'active' => (string) env('THEME', 'default'),

The currently active theme. This is typically set via the THEME environment variable in .env.

Example:

THEME=mytheme

Asset Configuration

'assets' => [
    'path' => 'themes',
    'publish_on_activate' => true,
    'symlink' => (bool) env('THEMER_SYMLINK', true),
],

path

The public directory suffix where theme assets will be published (e.g., public/themes).

publish_on_activate

Whether to automatically publish assets when a theme is activated. Set to false if you prefer manual asset publishing.

symlink

Whether to use symlinks instead of copying files. Symlinks are faster and save disk space, but require proper server permissions.

Production Tip: Set THEMER_SYMLINK=false in production if your deployment process doesn't support symlinks.

Discovery Configuration

'discovery' => [
    'filename' => 'theme.json',
    'scan_modules' => true,
],

filename

The metadata filename to look for when scanning for themes.

scan_modules

Whether to scan Laravel Modular modules for themes. Requires alizharb/laravel-modular.

Auto-Namespaces

'auto_namespaces' => [
    'layouts' => 'resources/views/layouts',
    'pages' => 'resources/views/livewire/pages',
],

Automatically register view and Livewire namespaces for common theme directories. These work alongside Livewire 4's native component_namespaces configuration.

Usage:

{{-- Resolves to active theme's layouts directory --}}
<x-layouts::app>
    {{-- Content --}}
</x-layouts::app>

{{-- Resolves to active theme's pages directory --}}
<livewire:pages::home />

Customization: Add your own auto-namespaces:

'auto_namespaces' => [
    'layouts' => 'resources/views/layouts',
    'pages' => 'resources/views/livewire/pages',
    'components' => 'resources/views/components',
    'partials' => 'resources/views/partials',
],

Environment Variables

Variable Default Description
THEME default Active theme slug
THEMER_SYMLINK true Use symlinks for assets

Advanced Configuration

Custom Themes Path

If you want to store themes in a different location:

'themes_path' => storage_path('themes'),

Multiple Theme Paths

For scanning multiple directories (requires custom implementation):

// In a service provider
$manager = app('themer');
$manager->scan(base_path('themes'));
$manager->scan(base_path('vendor-themes'));

Disable Auto-Publishing

For manual control over asset publishing:

'assets' => [
    'publish_on_activate' => false,
],

Then manually publish when needed:

php artisan theme:publish mytheme

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