PHPackages                             mensbeam/self-sealing-callable - 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. mensbeam/self-sealing-callable

ActiveLibrary

mensbeam/self-sealing-callable
==============================

You won't find a better Self-Sealing Callable in this sector!

v1.0.1(1y ago)072↓100%1MITPHPPHP &gt;=8.1

Since Feb 12Pushed 1y ago2 watchersCompare

[ Source](https://github.com/mensbeam/SelfSealingCallable)[ Packagist](https://packagist.org/packages/mensbeam/self-sealing-callable)[ RSS](/packages/mensbeam-self-sealing-callable/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (1)

Self-Sealing Callable
=====================

[](#self-sealing-callable)

> You won't find a better Self-Sealing Callable in this sector!

*Self-Sealing Callable* is a class that implements `__invoke()` which can enable and disable itself. When registering shutdown functions in PHP it's not possible to unregister them. This class exists to be used in this case. By calling `SelfSealingCallable->disable()` it will return `false` when invoked, allowing retroactive disabling of the shutdown handler.

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

[](#requirements)

- PHP 8.1

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

[](#installation)

```
composer require mensbeam/self-sealing-callable
```

Usage
-----

[](#usage)

It's pretty simple:

```
use MensBeam\SelfSealingCallable;

$callable = new SelfSealingCallable(fn() => 'ook');
$ook = $callable();
// 'ook'
$callable->disable();
$ook = $callable();
// false
$callable->enable();
$ook = $callable();
// 'ook'
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity51

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

Total

2

Last Release

516d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fa45644fa8847647e3d12802571072bbd4f3da8d27ed03f6f8df3c3859db6f6e?d=identicon)[dustinwilson](/maintainers/dustinwilson)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mensbeam-self-sealing-callable/health.svg)

```
[![Health](https://phpackages.com/badges/mensbeam-self-sealing-callable/health.svg)](https://phpackages.com/packages/mensbeam-self-sealing-callable)
```

PHPackages © 2026

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