PHPackages                             ezitisitis/laravel-dark-theme-switcher - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ezitisitis/laravel-dark-theme-switcher

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ezitisitis/laravel-dark-theme-switcher
======================================

This is my package laravel-dark-theme-switcher

v1.2.0(2mo ago)02.7k[3 PRs](https://github.com/ezitisitis/laravel-dark-theme-switcher/pulls)MITPHPPHP ^8.0CI passing

Since Nov 30Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/ezitisitis/laravel-dark-theme-switcher)[ Packagist](https://packagist.org/packages/ezitisitis/laravel-dark-theme-switcher)[ Docs](https://github.com/ezitisitis/laravel-dark-theme-switcher)[ Fund](https://www.buymeacoffee.com/ezitisitis)[ GitHub Sponsors](https://github.com/ezitisitis)[ RSS](/packages/ezitisitis-laravel-dark-theme-switcher/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (24)Versions (10)Used By (0)

Dark Theme Switcher for Laravel
===============================

[](#dark-theme-switcher-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3ef61f748809eefd6cba9f3f18efff602e05e0d147d4e76199b14143e1302245/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f657a69746973697469732f6c61726176656c2d6461726b2d7468656d652d73776974636865722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ezitisitis/laravel-dark-theme-switcher)[![GitHub Tests Action Status](https://camo.githubusercontent.com/5dd3c10e64dcc0bb5cc41ff6dbaf16d03af72c455474e83633fbdaf4750033f0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f657a69746973697469732f6c61726176656c2d6461726b2d7468656d652d73776974636865722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/ezitisitis/laravel-dark-theme-switcher/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/b7cf1fec5be5e636b8d95ffbcdc0445c95caea0433947f253321448a261a8939/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f657a69746973697469732f6c61726176656c2d6461726b2d7468656d652d73776974636865722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/ezitisitis/laravel-dark-theme-switcher/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/0248f829fc0f29d6f6a5912b01e1f2f1b1c240fc17631404fe5c34766676f68b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f657a69746973697469732f6c61726176656c2d6461726b2d7468656d652d73776974636865722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ezitisitis/laravel-dark-theme-switcher)

This package is made to provide good UX for theme switching and simplicity in implementation.

Support us
----------

[](#support-us)

If you are using this package for commercial use, that would be highly appreciated to support through [GitHub Sponsor](https://github.com/sponsors/ezitisitis)program, as developing even small packages requires time and effort, while saving your precious time.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require ezitisitis/laravel-dark-theme-switcher
```

Include next components in your layout to add the switching script and switch itself.

1. In the `` place next component:

```

```

2. Add switch component somewhere in the ``:

```

```

3. Add next code to your `app.js`

```
import '../../vendor/ezitisitis/laravel-dark-theme-switcher/resources/js/themeSwitch.js';
```

Configuration
-------------

[](#configuration)

You can publish the config file with:

```
php artisan vendor:publish --tag=dark-theme-switcher-config
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag=dark-theme-switcher-views
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Marks Bogdanovs](https://www.ezitisitis.com/)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance88

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~91 days

Recently: every ~114 days

Total

6

Last Release

70d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f1af77ae28f6643680e89f140d0c95123da4c575cb3261f764ee16ec7bf39e01?d=identicon)[ezitisitis](/maintainers/ezitisitis)

---

Top Contributors

[![ezitisitis](https://avatars.githubusercontent.com/u/6075434?v=4)](https://github.com/ezitisitis "ezitisitis (20 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")

---

Tags

laravelMarks Bogdanovslaravel-dark-theme-switcher

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/ezitisitis-laravel-dark-theme-switcher/health.svg)

```
[![Health](https://phpackages.com/badges/ezitisitis-laravel-dark-theme-switcher/health.svg)](https://phpackages.com/packages/ezitisitis-laravel-dark-theme-switcher)
```

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M627](/packages/spatie-laravel-data)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
