PHPackages                             flarumite/simple-spoilers - 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. flarumite/simple-spoilers

ActiveFlarum-extension[Utility &amp; Helpers](/categories/utility)

flarumite/simple-spoilers
=========================

BBCode spoilers (with custom title support) with pure HTML and CSS.

1.0.0(5y ago)64.4k↓85.7%MITLess

Since Mar 5Pushed 5y ago1 watchersCompare

[ Source](https://github.com/flarumite/simple-spoilers)[ Packagist](https://packagist.org/packages/flarumite/simple-spoilers)[ RSS](/packages/flarumite-simple-spoilers/feed)WikiDiscussions main Synced yesterday

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

Simple Spoilers
===============

[](#simple-spoilers)

[![](https://camo.githubusercontent.com/eeaf10bb5c51b4a845979a76f37367d6309bfcb8f086809dc6a64adb66f39172/68747470733a2f2f666c6172756d2d62616467652d6170692e64617677686561742e6465762f76312f636f6d7061742d6c61746573742f666c6172756d6974652f73696d706c652d73706f696c657273)](https://camo.githubusercontent.com/eeaf10bb5c51b4a845979a76f37367d6309bfcb8f086809dc6a64adb66f39172/68747470733a2f2f666c6172756d2d62616467652d6170692e64617677686561742e6465762f76312f636f6d7061742d6c61746573742f666c6172756d6974652f73696d706c652d73706f696c657273) [![MIT License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667) [![Latest Stable Version](https://camo.githubusercontent.com/8acf4630cb05c7b2b3fb810c4354a78003a39903c1a558a35cbe8804cf9fc434/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666c6172756d6974652f73696d706c652d73706f696c6572732e737667)](https://packagist.org/packages/flarumite/simple-spoilers) [![Total Downloads](https://camo.githubusercontent.com/6ede42e1b3002c9425b24d4a6567d4423e9fbdc61bd5b5bcaf97bd61810115ee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f666c6172756d6974652f73696d706c652d73706f696c6572732e737667)](https://packagist.org/packages/flarumite/simple-spoilers) [![Donate](https://camo.githubusercontent.com/6ad25dc60187e9efd9ea1737df0dfce649e74c4d2e836eae6800a012d227d1f0/68747470733a2f2f7777772e70617970616c6f626a656374732e636f6d2f656e5f47422f692f62746e2f62746e5f646f6e6174655f534d2e676966)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QCCXU72DC9LB4&source=url)

- HTML5 only spoilers - no JS needed!
- Works with [FriendsOfFlarum/nightmode](https://github.com/FriendsOfFlarum/nightmode)
- Integrates with standard Flarum BBCode
- Supports all modern browsers (96.26% of web traffic)

---

A [Flarum](http://flarum.org) extension. Adds simple spoilers to your forum. Uses pure HTML and CSS with absolutely no JavaScript.

Supports [FriendsOfFlarum's Night Mode](https://github.com/friendsofflarum/nightmode).

### Browser support

[](#browser-support)

As this extension uses the [`` and `` elements](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details), this extension is compatible with all modern browsers with 96.26% support for web traffic.

[![](https://camo.githubusercontent.com/aa198fb178185325bf8b8632c25c1f34c1ccf65e9f5132af9208743f130df0a0/68747470733a2f2f63616e697573652e626974736f66636f2e64652f696d6167652f64657461696c732e706e67)](https://camo.githubusercontent.com/aa198fb178185325bf8b8632c25c1f34c1ccf65e9f5132af9208743f130df0a0/68747470733a2f2f63616e697573652e626974736f66636f2e64652f696d6167652f64657461696c732e706e67)

### Installation

[](#installation)

Install with composer:

```
composer require flarumite/simple-spoilers:"*"
```

To update:

```
composer update flarumite/simple-spoilers
php flarum cache:clear
```

### Usage

[](#usage)

Spoilers are available in two versions: normal and customised title. The normal spoilers use the values in the locale file as titles (button text), whereas the customised title version allows users to add their own title to replace the localised versions.

#### Normal spoiler

[](#normal-spoiler)

Click to show[![](https://github.com/flarumite/simple-spoilers/raw/main/docs/normal.gif?raw=true)](https://github.com/flarumite/simple-spoilers/blob/main/docs/normal.gif?raw=true)

```
[spoiler]
Some content
[/spoiler]
```

#### Spoiler with custom title

[](#spoiler-with-custom-title)

Click to show[![](https://github.com/flarumite/simple-spoilers/raw/main/docs/custom-title.gif?raw=true)](https://github.com/flarumite/simple-spoilers/blob/main/docs/custom-title.gif?raw=true)

```
[spoiler title=My cool title]
Some content
[/spoiler]
```

#### Spoiler-ception!

[](#spoiler-ception)

Putting spoilers inside spoilers even works!

Click to show[![](https://github.com/flarumite/simple-spoilers/raw/main/docs/embedded.png?raw=true)](https://github.com/flarumite/simple-spoilers/blob/main/docs/embedded.png?raw=true)

```
[spoiler]
test
[spoiler]
embedded
[spoiler]
embedded
[spoiler]
embedded
[/spoiler]
[/spoiler]
[/spoiler]
[/spoiler]
```

### Links

[](#links)

- [Packagist](https://packagist.org/packages/flarumite/simple-spoilers)
- [GitHub](https://github.com/flarumite/simple-spoilers)
- [Discuss](https://discuss.flarum.org/d/26366-flarumite-simple-spoilers-pure-html5-and-css)

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~28 days

Total

4

Last Release

1861d ago

Major Versions

0.1.2 → 1.0.02021-05-29

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16573496?v=4)[IanM](/maintainers/imorland)[@imorland](https://github.com/imorland)

![](https://www.gravatar.com/avatar/53d4fe8764f574ca9dcac247816ca4d6a7d768880d35f02bb4af058ba210cc9a?d=identicon)[davwheat](/maintainers/davwheat)

---

Top Contributors

[![davwheat](https://avatars.githubusercontent.com/u/7406822?v=4)](https://github.com/davwheat "davwheat (32 commits)")

---

Tags

HTML5bbcodeflarumspoiler

### Embed Badge

![Health badge](/badges/flarumite-simple-spoilers/health.svg)

```
[![Health](https://phpackages.com/badges/flarumite-simple-spoilers/health.svg)](https://phpackages.com/packages/flarumite-simple-spoilers)
```

###  Alternatives

[flarum-lang/russian

Russian language pack for Flarum.

12128.3k](/packages/flarum-lang-russian)[fof/byobu

Well integrated, advanced private discussions.

59120.6k13](/packages/fof-byobu)[fof/discussion-language

Specify the language a discussion is written in &amp; sort by language

1034.8k4](/packages/fof-discussion-language)[flarum-lang/french

French language pack to localize the Flarum forum software plus its official and third-party extensions.

1938.7k](/packages/flarum-lang-french)[fof/polls

 A Flarum extension that adds polls to your discussions

25133.5k9](/packages/fof-polls)[fof/masquerade

User profile builder extension for your Flarum forum.

2025.4k5](/packages/fof-masquerade)

PHPackages © 2026

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