PHPackages                             ffans/clipboardjs - 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. ffans/clipboardjs

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

ffans/clipboardjs
=================

Add a modern approach to copy code to clipboard with code language display.

v1.0.0(4y ago)35.7k2[1 issues](https://github.com/FFans/clipboardjs/issues)MITLess

Since Mar 11Pushed 4y ago2 watchersCompare

[ Source](https://github.com/FFans/clipboardjs)[ Packagist](https://packagist.org/packages/ffans/clipboardjs)[ Docs](https://github.com/ffans)[ RSS](/packages/ffans-clipboardjs/feed)WikiDiscussions master Synced 1mo ago

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

FFans Clipboardjs
=================

[](#ffans-clipboardjs)

[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667) [![Latest Stable Version](https://camo.githubusercontent.com/24dc5e284baa6b17dbc5b1b889ee292ac2dfbbb5a7dd270babcc49fc88dce4bf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6666616e732f636c6970626f6172646a732e737667)](https://packagist.org/packages/ffans/clipboardjs)

A [Flarum](http://flarum.org) extension. Use [Clipboardjs](https://clipboardjs.com/) to add copy code approach with code language display to your Flarum. You can choose 7 different button styles, like GitHub, SegmentFault, etc.

Supports 47 common languages by default: .properties, apacheconf, bash, bbcode, c, csharp, css, cpp, coffeescript, diff, django, docker, dockerfile, git, go, html, ini, java, javadoc, js, json, less, lua, makefile, markdown, nginx, objectivec, perl, php, powershell, properties, python, python-repl, regex, ruby, rust, sass, scss, sql, stylus, swift, typescript, vim, visual-basic, vue, xml, yaml.

[![6toJyt](https://user-images.githubusercontent.com/35162802/130313457-23f9dc34-a5c1-450e-aa1e-92e3996d4c99.png)](https://user-images.githubusercontent.com/35162802/130313457-23f9dc34-a5c1-450e-aa1e-92e3996d4c99.png)

Settings

[![image](https://user-images.githubusercontent.com/35162802/130313428-0f8ff559-0c22-4aac-b69f-afa1a56bfea1.png)](https://user-images.githubusercontent.com/35162802/130313428-0f8ff559-0c22-4aac-b69f-afa1a56bfea1.png)

### Installation

[](#installation)

Install manually with composer:

```
composer require ffans/clipboardjs
```

### Updating

[](#updating)

```
composer update ffans/clipboardjs
```

### Links

[](#links)

- [Packagist](https://packagist.org/packages/ffans/clipboardjs)
- [Discussion](https://discuss.flarum.org/d/26415)
- [GitHub](https://github.com/ffans/clipboardjs)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community9

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

Total

5

Last Release

1732d ago

Major Versions

v0.1.0-beta.16.1 → v1.0.02021-08-21

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/28200313?v=4)[GOLD = the Gawk object layer](/maintainers/Golden)[@golden](https://github.com/golden)

---

Top Contributors

[![littlegolden](https://avatars.githubusercontent.com/u/35162802?v=4)](https://github.com/littlegolden "littlegolden (17 commits)")

---

Tags

flarumclipboardjscode language

### Embed Badge

![Health badge](/badges/ffans-clipboardjs/health.svg)

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

###  Alternatives

[fof/byobu

Well integrated, advanced private discussions.

61105.8k9](/packages/fof-byobu)[fof/user-bio

Add a user bio to user profiles

2196.5k9](/packages/fof-user-bio)[fof/links

Manage Flarum primary navbar menu links

39118.3k2](/packages/fof-links)[fof/drafts

Allow users to create post and discussion drafts

1771.1k5](/packages/fof-drafts)[fof/nightmode

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

3774.5k2](/packages/fof-nightmode)[fof/best-answer

Mark a post as the best answer in a discussion

26135.2k15](/packages/fof-best-answer)

PHPackages © 2026

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