PHPackages                             clarkwinkelmann/flarum-local-extenders - 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. clarkwinkelmann/flarum-local-extenders

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

clarkwinkelmann/flarum-local-extenders
======================================

Useful extenders for your local extend.php

1.0.1(3y ago)3674MITPHP

Since Apr 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/clarkwinkelmann/flarum-local-extenders)[ Packagist](https://packagist.org/packages/clarkwinkelmann/flarum-local-extenders)[ RSS](/packages/clarkwinkelmann-flarum-local-extenders/feed)WikiDiscussions master Synced 1mo ago

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

Local extenders for Flarum
==========================

[](#local-extenders-for-flarum)

[![MIT license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://github.com/clarkwinkelmann/flarum-local-extenders/blob/master/LICENSE.md) [![Latest Stable Version](https://camo.githubusercontent.com/b30eaf9021b41c26ab15a7553bdea28eb0494debe91a761795652851d7861337/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c61726b77696e6b656c6d616e6e2f666c6172756d2d6c6f63616c2d657874656e646572732e737667)](https://packagist.org/packages/clarkwinkelmann/flarum-local-extenders) [![Total Downloads](https://camo.githubusercontent.com/fd5b4f34781165c6e057f6cf8a9d91f01fc41691f1209634d38f311f17b552cc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c61726b77696e6b656c6d616e6e2f666c6172756d2d6c6f63616c2d657874656e646572732e737667)](https://packagist.org/packages/clarkwinkelmann/flarum-local-extenders) [![Donate](https://camo.githubusercontent.com/0d6e4d8b50b5983a58205941b1a581b1305903393b7a39da574e3f60af3c7f5b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70617970616c2d646f6e6174652d79656c6c6f772e737667)](https://www.paypal.me/clarkwinkelmann)

This package provides useful extenders for your local Flarum extend.php

This is not an actual extension, and will not appear in your Flarum admin panel.

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

[](#installation)

```
composer require clarkwinkelmann/flarum-local-extenders

```

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

[](#configuration)

The extenders can be used by adding them in the array of `extend.php` at the root of the Flarum install.

Below you will find a summary of the features along with examples. See the PHPDoc blocks in the source code for the full documentation and warnings.

### Alter extension list in admin

[](#alter-extension-list-in-admin)

Lets you customize how the extension list is rendered in the admin panel.

"Hide extension" and "Hide version" effectively hide the data, but it can still be guessed when the extension is enabled.

All other options are just cosmetic and just visually change the look without hiding the original values or features.

It's always possible to enable/disable an extension or edit its settings via the API.

Example:

```
(new ClarkWinkelmann\LocalExtenders\AlterExtensionListInAdmin())
    ->extension('flarum-markdown', function ($extension) {
        // To Hide the extension completely
        $extension->hide();

        // To hide select information or buttons
        $extension->hideVersion();
        $extension->hideSettings();

        // To change the look
        $extension->title = 'New title';
        $extension->description = 'New description';
        $extension->iconName = 'fas fa-tree';
        $extension->iconColor = '#aa0000';
        $extension->iconBackgroundColor = '#aa0000';
        $extension->iconImage = __DIR__.'/path/to/image.png'; // SVG/PNG/JPG

        // You can also chain calls via the methods
        $extension
            ->title('New title')
            ->iconName('fas fa-tree');
    }),
```

### Follow after start

[](#follow-after-start)

Adds a new user preference that controls a new feature "Follow discussions that I start".

Works exactly like the "Follow discussions that I reply to" feature bundled with Subscriptions, but for the discussion start.

Example:

```
new ClarkWinkelmann\LocalExtenders\FollowAfterStart(),
```

It's enabled by default. To set it disabled by default, pass a parameter to the constructor:

```
new ClarkWinkelmann\LocalExtenders\FollowAfterStart(false),
```

### Frontend without modules

[](#frontend-without-modules)

Similar to Flarum's Frontend extender for js &amp; css, but with a few differences:

- Doesn't handle javascript files as modules, allowing custom code that isn't designed for a module loader
- Allow adding multiple javascript files with a single extender

Example:

```
(new ClarkWinkelmann\LocalExtenders\FrontendWithoutModule('admin'))
    ->js(__DIR__.'/local/one-file.js')
    ->js(__DIR__.'/local/one-other-file.js')
    ->css(__DIR__.'/local/you-can-also-import-css-but-its-identical-to-the-core-extender.less'),
```

### Hide extension version in admin

[](#hide-extension-version-in-admin)

Removes the extension version of all extensions from the admin panel's data payload.

Example:

```
new ClarkWinkelmann\LocalExtenders\HideExtensionVersionInAdmin(),
```

### Hide Flarum version in admin

[](#hide-flarum-version-in-admin)

Removes the Flarum version from the admin panel's data payload.

Example:

```
new ClarkWinkelmann\LocalExtenders\HideFlarumVersionInAdmin(),
```

### Hide system info in admin

[](#hide-system-info-in-admin)

Removes the PHP and MySQL version from the admin panel's data payload.

Example:

```
new ClarkWinkelmann\LocalExtenders\HideSystemInfoInAdmin(),
```

### Override settings

[](#override-settings)

Set some key-value pairs to be returned by SettingsRepositoryInterface::get(). Even if another value is set via the admin panel, the values defined via this extender will take priority.

Example:

```
(new ClarkWinkelmann\LocalExtenders\OverrideSettings())
    ->set('mail_driver', 'log')
    ->set('forum_title', 'Hello'),
```

Hide some keys from the SettingsRepositoryInterface::all() payload. This only hides values coming from the database as values overridden via this extender are never returned by ::all() anyway.

Example:

```
(new ClarkWinkelmann\LocalExtenders\OverrideSettings())
    ->hide('mail_driver'),
```

The overridden values can also be set via an associative array passed to the constructor:

```
new ClarkWinkelmann\LocalExtenders\OverrideSettings([
    'fof-stopforumspam.ip' => '1',
    'fof-stopforumspam.email' => '0',
    'fof-stopforumspam.api_key' => 'abcdefg',
]),
```

### Remember Me by default

[](#remember-me-by-default)

Checks the "remember me" checkbox of the LogIn modal when it opens.

Example:

```
new ClarkWinkelmann\LocalExtenders\RememberMeByDefault(),
```

### Replace admin component view with HTML

[](#replace-admin-component-view-with-html)

Replace an admin component's view method with the given HTML.

Example:

```
(new ClarkWinkelmann\LocalExtenders\ReplaceAdminComponentViewWithHtml())
    ->string('MailPage', 'We have already configured email for you'),
```

```
(new ClarkWinkelmann\LocalExtenders\ReplaceAdminComponentViewWithHtml())
    ->file('MailPage', __DIR__.'/local/mail.html'),
```

Links
-----

[](#links)

- [GitHub](https://github.com/clarkwinkelmann/flarum-local-extenders)
- [Packagist](https://packagist.org/packages/clarkwinkelmann/flarum-local-extenders)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Recently: every ~173 days

Total

9

Last Release

1364d ago

Major Versions

0.6.1 → 1.0.02021-06-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/0538135c1debcef5602dce7ece027909cc832b7a6284ab9189a19aa8de98d60d?d=identicon)[clarkwinkelmann](/maintainers/clarkwinkelmann)

---

Top Contributors

[![clarkwinkelmann](https://avatars.githubusercontent.com/u/5264300?v=4)](https://github.com/clarkwinkelmann "clarkwinkelmann (12 commits)")

---

Tags

flarum

### Embed Badge

![Health badge](/badges/clarkwinkelmann-flarum-local-extenders/health.svg)

```
[![Health](https://phpackages.com/badges/clarkwinkelmann-flarum-local-extenders/health.svg)](https://phpackages.com/packages/clarkwinkelmann-flarum-local-extenders)
```

###  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)
