PHPackages                             clarkwinkelmann/flarum-ext-workbench-cleanup - 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. clarkwinkelmann/flarum-ext-workbench-cleanup

ActiveFlarum-extension

clarkwinkelmann/flarum-ext-workbench-cleanup
============================================

Inspect and delete unused files in the development workbench folder

1.1.0(1y ago)0133↓50%MITTypeScriptPHP ^8.0

Since Sep 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/clarkwinkelmann/flarum-ext-workbench-cleanup)[ Packagist](https://packagist.org/packages/clarkwinkelmann/flarum-ext-workbench-cleanup)[ RSS](/packages/clarkwinkelmann-flarum-ext-workbench-cleanup/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

Workbench Cleanup
=================

[](#workbench-cleanup)

[![MIT license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://github.com/clarkwinkelmann/flarum-ext-workbench-cleanup/blob/master/LICENSE.md) [![Latest Stable Version](https://camo.githubusercontent.com/e4b53fa32b7b655d1d6b8debbb20cf68b96538581aed3d57dfbab444178b995d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c61726b77696e6b656c6d616e6e2f666c6172756d2d6578742d776f726b62656e63682d636c65616e75702e737667)](https://packagist.org/packages/clarkwinkelmann/flarum-ext-workbench-cleanup) [![Total Downloads](https://camo.githubusercontent.com/d0fbd8a7202e6f6c19066aecbf7e51100cfbcfbf1ce8ccc3735515b6ff5683fd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c61726b77696e6b656c6d616e6e2f666c6172756d2d6578742d776f726b62656e63682d636c65616e75702e737667)](https://packagist.org/packages/clarkwinkelmann/flarum-ext-workbench-cleanup) [![Donate](https://camo.githubusercontent.com/0d6e4d8b50b5983a58205941b1a581b1305903393b7a39da574e3f60af3c7f5b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70617970616c2d646f6e6174652d79656c6c6f772e737667)](https://www.paypal.me/clarkwinkelmann)

Offers a simple page to inspect the space used by folders in the development workbench folder with quick shortcuts to delete `node_modules` and `vendor` sub-folders to free up space.

The list of folders to scan will be automatically pulled from `composer.json`, looking for any repository of `type`: `path`. Alternatively, a list of folders can be specified in the admin panel, those folders can be any path on disk, not restricted to Flarum installation root.

All features are restricted to admin users only so it should be safe even if you use it on publicly accessible forums, though I would not recommend it. Note than an admin can bring offline the forum or other Composer-based apps on the server by modifying the folder to point to a Flarum installation root and deleting the production `vendor` folder. All data deleted by the extension can be restored by running `composer install` (and `yarn install` / `npm i`) again.

Known limitations:

- If an extension uses unconventional or multiple javascript source folders, the additional `node_module` folders will not be picked up, they will count as code in the total and will not be deleted when clearing all.
- The more data the workbench folder contains, the longer the list will take to load. You might need to adjust your max execution time.
- All strings have been hard-coded, the extension cannot be translated.

Requirements
------------

[](#requirements)

This extension was designed for my personal development setup on Linux but might work on other Unix-compatible systems.

- Operating system with forward-slash folder paths
- `du` (disk usage) command-line utility
- PHP 8.0+
- `shell_exec` PHP access
- Flarum 1.2+ (but can scan older forums on the same server by specifying custom workbench folders)

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

[](#installation)

```
composer require clarkwinkelmann/flarum-ext-workbench-cleanup

```

Support
-------

[](#support)

This extension is under **minimal maintenance**.

It was developed for a client and released as open-source for the benefit of the community. I might publish simple bugfixes or compatibility updates for free.

You can [contact me](https://clarkwinkelmann.com/flarum) to sponsor additional features or updates.

Support is offered on a "best effort" basis through the Flarum community thread.

Links
-----

[](#links)

- [GitHub](https://github.com/clarkwinkelmann/flarum-ext-workbench-cleanup)
- [Packagist](https://packagist.org/packages/clarkwinkelmann/flarum-ext-workbench-cleanup)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Total

2

Last Release

553d ago

### 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 (2 commits)")

---

Tags

developerflarum

### Embed Badge

![Health badge](/badges/clarkwinkelmann-flarum-ext-workbench-cleanup/health.svg)

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

###  Alternatives

[fof/upload

The file upload extension for the Flarum forum with insane intelligence.

188171.7k15](/packages/fof-upload)[fof/byobu

Well integrated, advanced private discussions.

61105.8k9](/packages/fof-byobu)[fof/gamification

Upvotes and downvotes for your Flarum community

4157.1k6](/packages/fof-gamification)[fof/user-bio

Add a user bio to user profiles

2196.5k9](/packages/fof-user-bio)[flarum-lang/russian

Russian language pack for Flarum.

13126.1k](/packages/flarum-lang-russian)[fof/drafts

Allow users to create post and discussion drafts

1771.1k5](/packages/fof-drafts)

PHPackages © 2026

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