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
v1.4.0

Laravel Themer v1.4.0

Laravel Themer v1.4.0 turns the package into a stronger production theme operations layer for Laravel, Livewire, modular apps, and multi-brand products.

Highlights

  • Added production diagnostics: theme:doctor, theme:status, theme:debug, theme:graph, and theme:why.
  • Added theme:refresh with cache freshness metadata.
  • Added preview URL generation with theme:preview.
  • Added design-token support with theme:tokens, theme_token(), theme_tokens(), and [@themeTokens](https://github.com/themeTokens).
  • Added manifest validation for richer theme.json metadata.
  • Added Laravel Boost guidelines and a laravel-themer-development skill.
  • Added lifecycle events for caching, refresh, and preview workflows.
  • Expanded CI support for Laravel 13 and Orchestra Testbench 11.

Upgrade

composer update alizharb/laravel-themer
php artisan theme:refresh
php artisan theme:doctor
php artisan theme:check

Why It Matters

This release makes Laravel Themer more than a theme path resolver. It adds the operational tooling teams need to safely inspect, preview, validate, cache, and automate themes in production.

v1.3.0

We are thrilled to announce the release of Laravel Themer v1.3.0! 🎨

This release introduces massive performance optimizations for production environments, vastly improved developer experiences (DX) with new interactive wizards, and foundational architectural upgrades for deeper system integration.

🚀 Performance & Diagnostics

  • Zero-IO Production Cache: Supercharged the theme:cache command. It now evaluates the full, deep inheritance chain of all themes and serializes them into a single, highly optimized PHP array at bootstrap/cache/themes.php. In production, the ThemeManager boots instantly from this cache, entirely bypassing expensive filesystem scanning.
  • Isolated Linting Command: Introduced php artisan theme:lint {theme?}. This command safely formats your PHP code using Laravel Pint and concurrently triggers your NPM formatters (npm run format or lint) specifically scoped to the theme's directory.

✨ Developer Experience & Workflow Automation

  • Interactive CLI Wizards: Refactored theme:make and theme:activate. Running these commands without arguments now initiates a visually appealing, interactive laravel/prompts wizard to effortlessly guide you through creating and selecting themes.
  • Auto-Proxy Dev Command: Upgraded php artisan theme:dev to automatically detect and launch the development server for the currently active theme if a specific theme name isn't provided.
  • Git Workspace Synchronization: theme:make automatically generates robust .gitignore files inside new themes, keeping vendor and build assets out of your git history out of the box.

🛠️ Architecture & Core Features

  • Native Vite Integration: Refactored ThemeManager to natively hook into Laravel's Vite::useBuildDirectory and Vite::useHotFile(). The legacy symlink workaround for theme:publish is gone—themes can now confidently use standard [@vite](https://github.com/vite) tags.
  • PreviewTheme Middleware: A dedicated middleware allowing administrators or internal tools to securely preview inactive themes using Signed URLs or the ?preview_theme=slug query parameter.
  • System Event Hooks: Themes can now execute native Artisan or Shell commands on specific lifecycle events directly from theme.json (e.g., 'after_activate' => ['php artisan db:seed --class=EcommerceSeeder']).
  • Safe Mode Fallback: Enhanced boot initialization to catch fatal exceptions inside custom ThemeServiceProvider files. If a theme's boot process crashes, Safe Mode intercepts the error and silently falls back to the default configuration theme, drastically improving application stability.
  • Laravel 13 Support: Formalized compatibility constraints for the upcoming Laravel 13 release within the package dependencies.

⚙️ Hardening & Upgrades

  • Upgrade Path Automation: The php artisan theme:upgrade utility now gracefully automates schema migrations. It scans existing themes to inject missing .gitignore files and safely initializes the new hooks configurations inside their theme.json.
  • Zero PHPStan Warnings: Maintains 100% PHPStan compliance at maximum strictness.

Full Changelog: https://github.com/AlizHarb/laravel-themer/compare/v1.2.1...v1.3.0

v1.2.0

🚀 Overview

Laravel Themer v1.2.0 is a major feature release that elevates the package to a professional, enterprise-grade state. This update introduces isolated asset builds, native NPM Workspaces integration, and a comprehensive suite of lifecycle management commands designed for high-performance, multi-theme applications.

🎨 Power User Features & DX

  • Theme Loop Guard: Safety mechanism to prevent infinite recursion in complex theme inheritance chains.
  • Global Helpers: Added is_theme_active() helper and ThemeManager::isActive() for quick state checks.
  • @theme_include Directive: A new, intuitive Blade directive for theme-aware view inclusions.
  • Integrated Command Suite: New commands for every stage of the lifecycle: theme:clone, theme:delete, theme:upgrade.

📦 Enterprise Asset Orchestration

  • Universal NPM Workspaces: Automatic root configuration via themer:install for optimized dependency sharing.
  • Total Isolation: Each theme now generates its own package.json and vite.config.js, allowing independent versioning and unique build configurations.
  • Vite Loader Shortcuts: Direct access to asset builders with theme:dev and theme:build commands.
  • Vite Version Sync: Theme stubs now automatically synchronize their build tool versions with your root project.

🏛️ Advanced Scaffolding & Architecture

  • Namespaced Service Providers: Resolved class collisions in massive multi-theme environments with Theme\{Slug}\ThemeServiceProvider.
  • Enhanced Scaffolding: theme:make now generates professional screenshot placeholders, rich metadata (tags, author, description), and full directory structures.
  • Deep Inheritance: Upgraded Livewire and Blade resolution to support infinite inheritance depth with recursive parent lookup.

🔧 Stability & Quality Assurance

  • Strict Standardization: 100% PHPStan Level 5 compatibility and Pint-enforced code style.
  • CI Excellence: Optimized GitHub Actions matrix supporting PHP 8.2 through 8.5 and Laravel 11/12.
  • Zero-IO Performance: Improved internal caching for near-zero boot time even with hundreds of themes.

Full Changelog: v1.0.0...v1.2.0

v1.1.2

🏷️ Release v1.1.2

This release brings critical stability improvements to the core theme discovery engine and enhances the development experience with better Blade component support and Filament integration links.

🛠️ Fixes

  • Collection Indexing & Type Safety: Resolved a critical issue in ThemeManager::all() where the collection was being re-indexed with integers. It now correctly preserves string identifiers, ensuring that lookups via slugs and name-based filtering remain 100% reliable.
  • Blade Component Prefixes: Fixed a bug where layouts:: and pages:: view namespaces were not automatically registered as Blade component prefixes. Standard component tags like <x-layouts::*> and <x-pages::*> now work as expected out of the box.
  • Theme Discovery Optimization: Refined the registry to prevent duplicate theme entries when discovered via multiple paths or identifiers.
  • Cross-Environment Commands: Ensured that theme-specific Artisan commands are available in both Web and Console contexts, fixing execution failures when calling them via Artisan::call() within web controllers.

✨ DX & Ecosystem

  • PSR Compliance: Corrected import group alphabetical ordering to comply with PSR standards and pass strict CI linting.
  • Related Packages: Integrated documentation and metadata links for the new Filament Themer Luncher and Filament Modular Luncher official management UIs in composer.json and the README.

Verified with 100% PHPUnit/Pest test coverage and strict PHPStan analysis (Laravel 12 compatible).

v1.1.1

🎨 Laravel Themer v1.1.1

Enhanced Documentation & Ecosystem Integration

This maintenance release focuses on improving documentation, developer experience, and ecosystem awareness while maintaining 100% test coverage and strict code quality standards.


📚 Documentation Improvements

  • Related Packages Section: Added comprehensive ecosystem overview showcasing integration with laravel-modular, laravel-modular-livewire, laravel-modular-filament, and laravel-hooks
  • 📖 Enhanced Installation Guide: Detailed manual configuration steps with Vite integration examples
  • 🚀 Improved Quick Start: Clear step-by-step instructions for the themer:install command
  • 📦 Composer Suggestions: Updated with descriptive explanations for all modular packages

🔗 Package Ecosystem

Laravel Themer is now better documented as part of a comprehensive modular ecosystem:

Package Purpose
laravel-modular Framework-agnostic modular architecture with zero-config autoloading
laravel-modular-livewire Automatic Livewire 4 component discovery in modules
laravel-modular-filament Filament v5 admin panel integration with modules
laravel-hooks Universal extensibility and plugin system for Laravel 12+

🛠️ Code Quality

  • ✅ Fixed PHPStan level 5 analysis errors (proper type hints for author/authors fields)
  • ✅ Applied Laravel Pint formatting across all source files
  • ✅ Applied PHP-CS-Fixer for consistent code style
  • ✅ All 36 tests passing with 108 assertions
  • ✅ 100% test coverage maintained

💡 Developer Experience

  • 📝 Enhanced installation guide with both quick start and manual configuration options
  • ⚙️ Clear documentation for Vite integration setup
  • 🔍 Improved error handling and validation throughout the codebase
  • 🎯 Better discoverability of related packages and their integration points

📦 Installation

composer require alizharb/laravel-themer
php artisan themer:install
v1.1.0

🚀 Major Release: Production Performance & Advanced Inheritance

This release transforms laravel-themer from a simple theme manager into a production-grade theming engine. It introduces a Zero-IO Discovery caching layer that eliminates filesystem overhead in production and adds support for Deep Multi-Level Inheritance.

🌟 Headline Features

  • ⚡ Zero-IO Discovery Engine: The cache layer now serializes theme metadata (views, languages, providers, Livewire components) into a single PHP array. In production, this means 0 filesystem calls to boot your themes.
  • 🧬 Deep Inheritance Support: Themes can now inherit from parents that inherit from other parents. Views, translations, and Livewire components cascade naturally through the entire chain.
  • 🛡️ SetTheme Middleware: New AlizHarb\Themer\Http\Middleware\SetTheme middleware allows you to enforce themes at the route level:
    Route::middleware('theme:dark-mode')->group(...);
    
  • 🔖 Theme Versioning: Added support for the "version" key in theme.json to track theme updates independent of the package.

🛠 Technical Enhancements

  • Strict Type Safety: The codebase is now 100% PHPStan Compliant, ensuring maximum stability.
  • Professional Stubs: php artisan theme:make now generates a standardized, scalable directory structure with app/Livewire and lang support out of the box.
  • Modular Guard: The theme:check command now enforces dependencies on laravel-modular modules if defined in your theme config.
  • Code Style: 100% Laravel Pint compliant codebase.

📦 Upgrade Guide

No breaking changes. Run the following to publish the new configuration and clear old caches:

php artisan vendor:publish --tag=themer-config
php artisan theme:cache
v1.0.0

We are excited to announce the first official release of Laravel Themer, a robust and enterprise-grade theme management system specifically engineered for Laravel 11/12 and the TALL stack.

This package empowers you to build multi-themed applications with zero configuration overhead, providing a seamless "first-class" experience that feels like a native part of the framework.

✨ Key Features

  • 🎭 Intelligent Theme Discovery: Automatic scanning of themes in custom paths or within modular structures.
  • First-Class Livewire 4 Support: Theme-aware generation for components and layouts. Components automatically inherit layouts from active or parent themes.
  • 🏗️ Native Command Overrides: Extended Artisan commands (make:view, make:component, make:livewire) that automatically respect the --theme flag.
  • 🧩 Zero-Config Modular Integration: Designed to work out-of-the-box with alizharb/laravel-modular, allowing you to treat modules as theme containers.
  • 🎨 Asset Management: Automatic asset publishing and symlinking mechanism, extending [@vite](https://github.com/vite) to handle theme-specific assets effortlessly.
  • 👨‍👩‍👧 Theme Inheritance: Support for parent/child theme relationships for efficient view and asset overrides.

🚀 Production Ready

This release has been strictly typed and tested.

  • PHP: ^8.2 (Tested on 8.3 & 8.4)
  • Laravel: ^11.0 | ^12.0
  • Livewire: ^4.0 (Optional support)
  • CI/CD: 100% Green on PHPStan (Level 5), Code Style, and Feature Tests.

Made with ❤️ by Ali Harb

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