PHPackages                             reflar/nightmode - 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. reflar/nightmode

Abandoned → [fof/nightmode](/?search=fof%2Fnightmode)Flarum-extension[Utility &amp; Helpers](/categories/utility)

reflar/nightmode
================

Add a Night Mode option for your users to use on your Flarum forum

1.6.0(1y ago)372.8k22[2 issues](https://github.com/FriendsOfFlarum/nightmode/issues)[2 PRs](https://github.com/FriendsOfFlarum/nightmode/pulls)MITPHPPHP ^7.4 || ^8.0CI passing

Since Apr 16Pushed 2mo ago6 watchersCompare

[ Source](https://github.com/FriendsOfFlarum/nightmode)[ Packagist](https://packagist.org/packages/reflar/nightmode)[ Docs](https://friendsofflarum.org)[ Fund](https://opencollective.com/fof/donate)[ RSS](/packages/reflar-nightmode/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (3)Versions (44)Used By (0)

Night Mode by FriendsOfFlarum
=============================

[](#night-mode-by-friendsofflarum)

[![GitHub license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://github.com/fof/nightmode/blob/master/LICENSE)[![Latest Stable Version](https://camo.githubusercontent.com/8ecb7737031c1bc4895f738b24eb2d436540f8b42913b3fd828f1f4a9f46bc5b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666f662f6e696768746d6f64652e737667)](https://github.com/FriendsOfFlarum/nightmode)[![Total Downloads](https://camo.githubusercontent.com/a6c88adab8904819f6f94e68ba554111392d15b827692dc1b31a24340c7e5999/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f666f662f6e696768746d6f64652e737667)](https://packagist.org/packages/fof/nightmode)

A [Flarum](http://flarum.org) extension. Add a Night Mode 🌙 for your users to use on your Flarum forum! (THE LIGHT 🌞, IT BUUUURNSSS!!!)

- A new "Night Mode" menu option will appear in your user options when you click on your avatar next to the notifications icon. [![Night Mode Option](https://camo.githubusercontent.com/14d22956395affcaf5553e4f69843532bfc0803f215447c00ec6f2c4458308b9/68747470733a2f2f692e696d6775722e636f6d2f783343766869632e706e67)](https://camo.githubusercontent.com/14d22956395affcaf5553e4f69843532bfc0803f215447c00ec6f2c4458308b9/68747470733a2f2f692e696d6775722e636f6d2f783343766869632e706e67)
- A "Day Mode" option has been added as well to make the light appear again! (BEGONE, DANKESS!) [![Day Mode Option](https://camo.githubusercontent.com/19b1f0585f3d98b2634f031d864e22f2a6536dc86f18347aa21c6aea7861fe2a/68747470733a2f2f692e696d6775722e636f6d2f5a4a63444751422e706e67)](https://camo.githubusercontent.com/19b1f0585f3d98b2634f031d864e22f2a6536dc86f18347aa21c6aea7861fe2a/68747470733a2f2f692e696d6775722e636f6d2f5a4a63444751422e706e67)

### Installation

[](#installation)

Install manually with composer:

```
composer require fof/nightmode:"*"
```

### Updating

[](#updating)

```
composer update fof/nightmode
```

### Integrating with `fof/nightmode` from another extension

[](#integrating-with-fofnightmode-from-another-extension)

Each time the mode is switched from `day` to `night` (and vice versa), a `fofnightmodechange` event is dispatched. An extension can then listen to this event to react to this change, like so:

```
if (flarum.extensions['fof-nightmode']) {
  document.addEventListener('fofnightmodechange', (event) => {
    if (event.detail == 'day') {
      console.log('day mode');
    } else {
      console.log('night mode');
    }
  });
}
```

### Links

[](#links)

[![](https://camo.githubusercontent.com/0902ec237d4d38955be6c93a043a27694eb59f49ab91e47022b86cee1892afce/68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f666f662f646f6e6174652f627574746f6e4032782e706e673f636f6c6f723d626c7565)](https://opencollective.com/fof/donate)

- [Packagist](https://packagist.org/packages/fof/nightmode)
- [GitHub](https://github.com/FriendsOfFlarum/nightmode)
- [ReFlar's Night Mode](https://packagist.org/packages/reflar/nightmode)

An extension by [FriendsOfFlarum](https://github.com/FriendsOfFlarum).

###  Health Score

53

—

FairBetter than 97% of packages

Maintenance62

Regular maintenance activity

Popularity31

Limited adoption so far

Community28

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor3

3 contributors hold 50%+ of commits

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 ~58 days

Recently: every ~190 days

Total

42

Last Release

573d ago

Major Versions

0.8.0 → 1.0.02021-05-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/1298cdc0b2402a1aa34fb75a254947d655e090d62bd0531311331d369cac934e?d=identicon)[datitisev](/maintainers/datitisev)

![](https://www.gravatar.com/avatar/4415106be37759e15d2f1304df343a37e478dad0f832b6f35860631ffc9b6afb?d=identicon)[Ralkage](/maintainers/Ralkage)

![](https://www.gravatar.com/avatar/887d749e38ce714da8ef0063fa39a5ceb5085cd4fdb1f4bf4bbda28b116ab025?d=identicon)[CDK2020](/maintainers/CDK2020)

---

Top Contributors

[![ShahiemS](https://avatars.githubusercontent.com/u/188719889?v=4)](https://github.com/ShahiemS "ShahiemS (30 commits)")[![imorland](https://avatars.githubusercontent.com/u/16573496?v=4)](https://github.com/imorland "imorland (26 commits)")[![flarum-bot](https://avatars.githubusercontent.com/u/39334649?v=4)](https://github.com/flarum-bot "flarum-bot (22 commits)")[![dsevillamartin](https://avatars.githubusercontent.com/u/6401250?v=4)](https://github.com/dsevillamartin "dsevillamartin (21 commits)")[![Ralkage](https://avatars.githubusercontent.com/u/2059356?v=4)](https://github.com/Ralkage "Ralkage (19 commits)")[![davwheat](https://avatars.githubusercontent.com/u/7406822?v=4)](https://github.com/davwheat "davwheat (14 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (6 commits)")[![tankerkiller125](https://avatars.githubusercontent.com/u/3457368?v=4)](https://github.com/tankerkiller125 "tankerkiller125 (3 commits)")[![karaok491](https://avatars.githubusercontent.com/u/72854852?v=4)](https://github.com/karaok491 "karaok491 (3 commits)")[![luceos](https://avatars.githubusercontent.com/u/504687?v=4)](https://github.com/luceos "luceos (2 commits)")[![renato](https://avatars.githubusercontent.com/u/3530?v=4)](https://github.com/renato "renato (2 commits)")[![n-peugnet](https://avatars.githubusercontent.com/u/23519418?v=4)](https://github.com/n-peugnet "n-peugnet (1 commits)")[![glombers](https://avatars.githubusercontent.com/u/18645897?v=4)](https://github.com/glombers "glombers (1 commits)")[![fisayoafolayan](https://avatars.githubusercontent.com/u/17156717?v=4)](https://github.com/fisayoafolayan "fisayoafolayan (1 commits)")[![spaeps](https://avatars.githubusercontent.com/u/1037160?v=4)](https://github.com/spaeps "spaeps (1 commits)")[![askvortsov1](https://avatars.githubusercontent.com/u/38059171?v=4)](https://github.com/askvortsov1 "askvortsov1 (1 commits)")[![ardacebi](https://avatars.githubusercontent.com/u/17576065?v=4)](https://github.com/ardacebi "ardacebi (1 commits)")[![jaspervriends](https://avatars.githubusercontent.com/u/4417659?v=4)](https://github.com/jaspervriends "jaspervriends (1 commits)")[![KyrneDev](https://avatars.githubusercontent.com/u/13856015?v=4)](https://github.com/KyrneDev "KyrneDev (1 commits)")

---

Tags

darkextensionflarumflarum-extensionforumfriendsofflarumhacktoberfestlightlightsnight-modeoptionextensionflarummodenightfriendsoflarumnightmode

### Embed Badge

![Health badge](/badges/reflar-nightmode/health.svg)

```
[![Health](https://phpackages.com/badges/reflar-nightmode/health.svg)](https://phpackages.com/packages/reflar-nightmode)
```

###  Alternatives

[fof/nightmode

Add a Night Mode option for your users to use on your Flarum forum

3774.5k2](/packages/fof-nightmode)[fof/sitemap

Generate a sitemap

1988.7k2](/packages/fof-sitemap)[fof/mason

Add custom fields to discussions

206.0k](/packages/fof-mason)

PHPackages © 2026

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