PHPackages                             stenvdb/craft-out-of-stock - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. stenvdb/craft-out-of-stock

ActiveCraft-plugin[Mail &amp; Notifications](/categories/mail)

stenvdb/craft-out-of-stock
==========================

Get notified when products are (almost) out of stock.

1.0.2(6y ago)01263[4 issues](https://github.com/stenvdb/craft-out-of-stock/issues)MITPHP

Since Sep 3Pushed 6y ago1 watchersCompare

[ Source](https://github.com/stenvdb/craft-out-of-stock)[ Packagist](https://packagist.org/packages/stenvdb/craft-out-of-stock)[ RSS](/packages/stenvdb-craft-out-of-stock/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Out of Stock plugin for Craft CMS 3.x
=====================================

[](#out-of-stock-plugin-for-craft-cms-3x)

Get notified when products are (almost) out of stock.

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

[](#requirements)

This plugin requires Craft CMS 3.0.0 or later and Craft Commerce 2.0 or later.

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

[](#installation)

To install the plugin, follow these instructions.

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

    ```
     cd /path/to/project

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

    ```
     composer require stenvdb/craft-out-of-stock

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Out of Stock.

Out of Stock Overview
---------------------

[](#out-of-stock-overview)

Out of Stock will fire an event when a variant has surpassed a stock threshold point and send an email if enabled in the configuration.

Stock will be checked when:

- A paid order has been saved
- A variant is saved in the control panel and the stock value was manually updated

Configuring Out of Stock
------------------------

[](#configuring-out-of-stock)

Either by copy pasting `config.php` file to `config/out-of-stock.php` or through the control panel settings.

Using Out of Stock
------------------

[](#using-out-of-stock)

If enabled in config, Out of Stock will send an email to one or more recipients. You can also hook in to the event and write your own logic:

```
use stenvdb\outofstock\events\LowStockEvent;
use stenvdb\outofstock\services\OutOfStockService;

Event::on(OutOfStockService::class, OutOfStockService::EVENT_VARIANT_LOW_ON_STOCK, function(LowStockEvent $event) {
    // Do something when stock is sold out or critically low
    // $event->variant contains the variant that's low on stock
});

```

Brought to you by [Sten Van den Bergh](https://stenvdb.be)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

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

Total

3

Last Release

2442d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7c2ae536477b82fbc766e1fdd8e040c707184d10eea1da786ac51e0f0431a29d?d=identicon)[stenvdb](/maintainers/stenvdb)

---

Top Contributors

[![stenvdb](https://avatars.githubusercontent.com/u/362222?v=4)](https://github.com/stenvdb "stenvdb (16 commits)")

---

Tags

craft-commerce-plugincraft-plugincraftcmscmsCraftcraftcmscraft-pluginout-of-stock

### Embed Badge

![Health badge](/badges/stenvdb-craft-out-of-stock/health.svg)

```
[![Health](https://phpackages.com/badges/stenvdb-craft-out-of-stock/health.svg)](https://phpackages.com/packages/stenvdb-craft-out-of-stock)
```

###  Alternatives

[craftpulse/craft-notifications

Send notifications across a variety of delivery channels, including mail and Slack. Notifications may also be stored in a database so they may be displayed in your web interface.

551.2k](/packages/craftpulse-craft-notifications)

PHPackages © 2026

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