PHPackages                             nstcactus/craft-disk-usage-widget - 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. nstcactus/craft-disk-usage-widget

ActiveCraft-plugin[Utility &amp; Helpers](/categories/utility)

nstcactus/craft-disk-usage-widget
=================================

A Craft CMS widget that displays the disk usage on your server

2.3.1(2y ago)2638MITPHP

Since Sep 6Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/nstCactus/craft-disk-usage-widget)[ Packagist](https://packagist.org/packages/nstcactus/craft-disk-usage-widget)[ RSS](/packages/nstcactus-craft-disk-usage-widget/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (14)Used By (0)

Disk usage dashboard widget for Craft
=====================================

[](#disk-usage-dashboard-widget-for-craft)

This plugin adds a new widget type that can be added to the Craft CMS dashboard.
The widget simply displays the disk usage on your server.

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

[](#requirements)

This plugin requires Craft CMS 3.7.0 or later (it may work with previous 3.x versions, but I haven't tested, and you'll need to tweak the composer.json file).

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

[](#installation)

The plugin can be installed from the integrated plugin store by searching for "Disk usage dashboard widget" or using Composer:

1. Open your terminal and navigate to your Craft project:

    ```
    cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
    composer require nstcactus/craft-disk-usage-widget

    ```
3. Finally, install and enable the plugin:

    ```
    ./craft plugin/install disk-usage-widget
    ./craft plugin/enable disk-usage-widget

    ```

Usage
-----

[](#usage)

After the plugin has been installed, widgets can be added to the dashboard.
Several instances of the widget may be added, each one monitoring the disk usage of a partition.

### Classic mode

[](#classic-mode)

The classic way of determining disk usage leverages the `disk_free_space()`&amp; `disk_total_space()` PHP functions. You need to provide the path to a directory in the disk partition you want to monitor. The default value is the path to the Craft CMS webroot, which is a reasonable value.

In that mode, you may set **Soft limit**. If the disk usage exceeds that limit, the widget indicator will turn red.

### Quotas mode

[](#quotas-mode)

Some hosting providers use disk quotas, especially on shared hosting.

In such cases, the disk usage reported by the widget may be wrong. You can try enabling **The server uses disk quotas** setting to circumvent this. When enabled, the widget will try to use the `quota -s` shell command to get the disk usage.

For this to work, your hosting provider has to let you use either the `proc_*()` or the `exec()` PHP functions. PHP must also run as the UNIX user the disk quota is set on.

You need to select the partition to monitor in the **Partition** field. If no partitions are available the **Partition** dropdown, you're out of luck…

Some hosting providers set the quota &amp; limit to the same value. You can override the soft limit if you need to know when you're almost out of space.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance46

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Recently: every ~284 days

Total

11

Last Release

201d ago

Major Versions

1.0.0 → 2.0.02022-09-08

1.1.0 → 2.1.02022-09-14

1.2.0 → 2.3.02022-11-05

1.3.1 → 2.3.12023-10-03

### Community

Maintainers

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

---

Top Contributors

[![nstcactus](https://avatars.githubusercontent.com/u/353843?v=4)](https://github.com/nstcactus "nstcactus (19 commits)")

---

Tags

cmsCraftcraftcmscraft-plugin

### Embed Badge

![Health badge](/badges/nstcactus-craft-disk-usage-widget/health.svg)

```
[![Health](https://phpackages.com/badges/nstcactus-craft-disk-usage-widget/health.svg)](https://phpackages.com/packages/nstcactus-craft-disk-usage-widget)
```

###  Alternatives

[verbb/formie

The most user-friendly forms plugin for Craft.

102393.6k70](/packages/verbb-formie)[verbb/comments

Add comments to your site.

13753.9k](/packages/verbb-comments)[verbb/navigation

Create navigation menus for your site.

92705.0k18](/packages/verbb-navigation)[verbb/vizy

A flexible visual editor field for Craft.

4250.4k](/packages/verbb-vizy)[verbb/hyper

A user-friendly links field for Craft.

24147.8k12](/packages/verbb-hyper)[verbb/workflow

Enforce multi-step review processes for creating entries.

138124.2k1](/packages/verbb-workflow)

PHPackages © 2026

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