PHPackages                             dmelin/tantrum - 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. dmelin/tantrum

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

dmelin/tantrum
==============

The throwable with the energy of a 6 year old.

v1.0.0(2mo ago)00MITPHPPHP &gt;=8.0

Since May 25Pushed 2mo agoCompare

[ Source](https://github.com/dmelin/php-tantrum)[ Packagist](https://packagist.org/packages/dmelin/tantrum)[ RSS](/packages/dmelin-tantrum/feed)WikiDiscussions main Synced 1w ago

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

Tantrum
=======

[](#tantrum)

The throwable with the energy of a 6 year old.

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

[](#installation)

```
composer require dmelin/tantrum
```

Usage
-----

[](#usage)

```
use DMelin\Tantrum\Tantrum;

throw new Tantrum('cant open file.', 2);
```

Output:

```
CANT. OPEN. FILE!

```

Rage Levels
-----------

[](#rage-levels)

Tantrum accepts a rage level from 1 to 3. Values outside this range are clamped. Default rage is 1.

### Rage 1

[](#rage-1)

```
throw new Tantrum('cant open file.', 1);
```

```
CANT OPEN FILE!

```

### Rage 2

[](#rage-2)

```
throw new Tantrum('cant open file.', 2);
```

```
CANT. OPEN. FILE!

```

### Rage 3

[](#rage-3)

```
throw new Tantrum('cant open file.', 3);
```

```
٩(ఠ益ఠ)۶ CANT! OPEN! FILE!!!

```

Behavior
--------

[](#behavior)

- Messages are converted to uppercase
- Periods become exclamation marks
- Rage 2 replaces spaces with `. `
- Rage 3 replaces spaces with `! ` and triples the final exclamation marks
- Extends `RuntimeException` and can be caught as such
- Supports exception chaining via the optional third parameter

Testing
-------

[](#testing)

```
composer install
vendor/bin/phpunit
```

License
-------

[](#license)

MIT

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance88

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

60d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1613429?v=4)[Daniel Melin](/maintainers/dmelin)[@dmelin](https://github.com/dmelin)

---

Top Contributors

[![dmelin](https://avatars.githubusercontent.com/u/1613429?v=4)](https://github.com/dmelin "dmelin (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dmelin-tantrum/health.svg)

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

PHPackages © 2026

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