PHPackages                             siwayll/kapow - 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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. siwayll/kapow

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

siwayll/kapow
=============

simple base for customizing exceptions

1.2(8y ago)0991MITPHPPHP &gt;=7.1

Since Dec 26Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Siwayll/kapow)[ Packagist](https://packagist.org/packages/siwayll/kapow)[ RSS](/packages/siwayll-kapow/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (5)Versions (6)Used By (0)

Kapow !
========

[](#kapow-)

[![FOSSA Status](https://camo.githubusercontent.com/63561280c1b756808014a20258ce86c9cd885b72424ba7e6d715bdeaa17cbb80/68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d25324653697761796c6c2532466b61706f772e7376673f747970653d736869656c64)](https://app.fossa.io/projects/git%2Bgithub.com%2FSiwayll%2Fkapow?ref=badge_shield)[![Build Status](https://camo.githubusercontent.com/a06792cc6121cb3c930afe93e61615f0972193413a5ec7ebd9e1f68f7d2d80f8/68747470733a2f2f7472617669732d63692e6f72672f53697761796c6c2f6b61706f772e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Siwayll/kapow)[![Coverage Status](https://camo.githubusercontent.com/dd640ce73433a17cad92fe81220ab93f746740ec364babaed233b7a2cf00d853/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f53697761796c6c2f6b61706f772f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/Siwayll/kapow?branch=master)

Simple exception with variables in it.

Quick examples
--------------

[](#quick-examples)

Create an Exception

```
use Siwayll\Kapow\Exception as Kapow;
use Siwayll\Kapow\Level;
...

class DodgeSpecialAttack extends Kapow
{
    protected $superVillain;

    protected $superHero;

    protected $specialAttack;

    /**
     * Message of the exception
     */
    public $message = 'The super villain {superVillain} has dodge {superHero} super hero special attack {specialAttack}';

    public $code = Level::CRITICAL;

    public function __construct(Mutant $superVillain, Mutant $superHero, string $specialAttack)
    {
        $this->superVillain = $superVillain->getName();
        $this->superHero = $superHero->getName();
        $this->specialAttack = $specialAttack;
    }
}
```

Throw it !

```
throw new DodgeSpecialAttack($villan, $hero, 'ultra smash 2');
```

Contributing
------------

[](#contributing)

- Fork it!
- Create your feature branch: `git checkout -b my-new-feature`
- Commit your changes: `git commit -am 'Add some feature'`
- Push to the branch: `git push origin my-new-feature`
- Submit a pull request

Running the tests
-----------------

[](#running-the-tests)

```
make install
./bin/atoum
```

License
-------

[](#license)

MIT

[![FOSSA Status](https://camo.githubusercontent.com/f6a105d014eafc35e2c1e6069c4f66a5d73c642dbf9f74b3358819b7b0a810f9/68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d25324653697761796c6c2532466b61706f772e7376673f747970653d6c61726765)](https://app.fossa.io/projects/git%2Bgithub.com%2FSiwayll%2Fkapow?ref=badge_large)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 97.8% 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 ~0 days

Total

5

Last Release

3106d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/13ced9cd1a81094c1d7aa861df3aeb2924acbea841e053efff5759f517748d27?d=identicon)[Siwayll](/maintainers/Siwayll)

---

Top Contributors

[![Siwayll](https://avatars.githubusercontent.com/u/1230190?v=4)](https://github.com/Siwayll "Siwayll (44 commits)")[![fossabot](https://avatars.githubusercontent.com/u/29791463?v=4)](https://github.com/fossabot "fossabot (1 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/siwayll-kapow/health.svg)

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

###  Alternatives

[fjogeleit/prometheus-messenger-middleware

Prometheus Middleware for the Symfony Messenger Component

2255.2k](/packages/fjogeleit-prometheus-messenger-middleware)[spatie/craft-ray

Easily debug CraftCMS projects

1638.4k](/packages/spatie-craft-ray)

PHPackages © 2026

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