PHPackages                             quasilyte/kfinalize - 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. quasilyte/kfinalize

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

quasilyte/kfinalize
===================

register\_shutdown\_function() without limits

v1.0.1(4y ago)0832MITPHPPHP &gt;=7.4

Since Feb 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/quasilyte/KFinalize)[ Packagist](https://packagist.org/packages/quasilyte/kfinalize)[ RSS](/packages/quasilyte-kfinalize/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)DependenciesVersions (3)Used By (2)

KFinalize
=========

[](#kfinalize)

KFinilize registers a script shutdown callbacks for finalization purposes. It's mostly useful in KPHP (or hybrid) applications, where you want to free some resources allocated outside of the KPHP memory context (FFI code is one of the examples).

When using multiple FFI libraries, you can at some point reach the max [register\_shutdown\_function](https://www.php.net/manual/en/function.register-shutdown-function.php) stack depth and your script will fail. To avoid that, KFinalize tries to aggregate all finalization needs and combine them into one shutdown callback.

Some users of this library:

- [KSQLite](https://github.com/quasilyte/KSQLite) - a FFI-based SQLite library that can be used in both PHP and KPHP

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

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

Total

2

Last Release

1527d ago

### Community

Maintainers

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

---

Top Contributors

[![quasilyte](https://avatars.githubusercontent.com/u/6286655?v=4)](https://github.com/quasilyte "quasilyte (6 commits)")

### Embed Badge

![Health badge](/badges/quasilyte-kfinalize/health.svg)

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

###  Alternatives

[recolize/module-recommendation-engine-magento2

The Recolize Recommendation Engine Extension for Magento 2

115.0k](/packages/recolize-module-recommendation-engine-magento2)

PHPackages © 2026

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