Download the PHP package protik/laravel-theme-switcher without Composer
On this page you can find all versions of the php package protik/laravel-theme-switcher. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download protik/laravel-theme-switcher
More information about protik/laravel-theme-switcher
Files in protik/laravel-theme-switcher
Download protik/laravel-theme-switcher
More information about protik/laravel-theme-switcher
Files in protik/laravel-theme-switcher
Vendor protik
Package laravel-theme-switcher
Short Description A Laravel package to switch website themes (light/dark mode)
License MIT
Package laravel-theme-switcher
Short Description A Laravel package to switch website themes (light/dark mode)
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-theme-switcher
Laravel Theme Switcher
A simple, plug-and-play Laravel package for switching between multiple themes with zero configuration required.
Installation
Quick Setup
Step 1: Add Middleware
In bootstrap/app.php, add the middleware to the web group:
Step 2: Use in Your Views
Add the theme class to your <body> tag and include the toggle component:
That's it! The package automatically injects default styles and provides theme switching functionality.
Features
- ✅ Multiple themes support (light, dark, blue, etc.)
- ✅ Zero configuration required
- ✅ Auto-injected CSS styles
- ✅ Session-based theme storage
- ✅ Blade component for easy integration
- ✅ Fully customizable via config
Customization (Optional)
Publish the config file to customize themes:
Edit config/theme-switcher.php to:
- Add/modify themes
- Change default theme
- Disable default styles
Requirements
- PHP ^8.1
- Laravel ^12.0
License
MIT
All versions of laravel-theme-switcher with dependencies
PHP Build Version
Package Version
The package protik/laravel-theme-switcher contains the following files
Loading the files please wait ...