PHPackages                             net\_bazzline/component\_shutdown - 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. net\_bazzline/component\_shutdown

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

net\_bazzline/component\_shutdown
=================================

php component shutdown

1.0.3(12y ago)0185LGPLv3PHPPHP &gt;=5.3.3

Since Jul 1Pushed 11y ago1 watchersCompare

[ Source](https://github.com/stevleibelt/php_component_shutdown)[ Packagist](https://packagist.org/packages/net_bazzline/component_shutdown)[ Docs](https://github.com/stevleibelt/php_component_shutdown)[ RSS](/packages/net-bazzline-component-shutdown/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (4)Used By (0)

Process Shutdown Component
==========================

[](#process-shutdown-component)

The build status of the current master branch is tracked by Travis CI:

[![Build Status](https://camo.githubusercontent.com/ef43258551298b40764efeb269f8e50d365952ef05d9b005e57a9e23629b317d/68747470733a2f2f7472617669732d63692e6f72672f737465766c656962656c742f7068705f636f6d706f6e656e745f73687574646f776e2e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/stevleibelt/php_component_shutdown)

General
=======

[](#general)

This component provides the *ShutdownInterface* as well as an *ShutdownAwareInterface*. It comes with two implementations of the *ShutdownInterface*.

You can use this interface to shutdown classes or processes to prevent you from using kill to stop the process. With the shutdown, you can controll how you class or process should go to a well defined shutdown.

This component was created by splitting up the [PHP\_Bazzline\_Utility](https://github.com/stevleibelt/archive/tree/master/php/bazzlineUtility) repository.

Implementations
===============

[](#implementations)

Two implementations exists. The *FileShutdown* and the *RuntimeShutdown*.

RuntimeShutdown
---------------

[](#runtimeshutdown)

The RuntimeLock can be used to shutdown an instance during one request. This can be useful if you want to react on runtime environment changes or something similar.

FileShutdown
------------

[](#fileshutdown)

The FileShutdown can be used to shutdown an running process outside from the current request. If you have to implement longer running requests (runtime above one minute for example), you can easily touch a fitting shutdown file to stop the process in a well defined way.

Future Improvements
===================

[](#future-improvements)

- take a look to [graceful death](https://github.com/gabrielelana/graceful-death/blob/master/src/GracefulDeath.php) to see if features can be merged

History
=======

[](#history)

- [1.0.3](https://github.com/stevleibelt/php_component_shutdown/tree/1.0.3)
    - Added ShutdownDependentInterface
- [1.0.2](https://github.com/stevleibelt/php_component_shutdown/tree/1.0.2)
    - Added optional constructor $name
- [1.0.1](https://github.com/stevleibelt/php_component_shutdown/tree/1.0.1)
    - Moved to LGPLv3
- [1.0.0](https://github.com/stevleibelt/php_component_shutdown/tree/v1.0.0)
    - Finished *ShutdownInterface* and *ShutdownAwareInterface*
    - Added implementation for *FileShutdown* and *RuntimeShutdown*
    - Covered implementations with unittests

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

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

Total

4

Last Release

4403d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/58451b041f6f5a38c7e62762c96d01f5e2bcac30e322707fe4760a82bccb6856?d=identicon)[artodeto](/maintainers/artodeto)

---

Top Contributors

[![stevleibelt](https://avatars.githubusercontent.com/u/2287220?v=4)](https://github.com/stevleibelt "stevleibelt (23 commits)")

---

Tags

phpcomponentshutdownnet\_bazzline

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/net-bazzline-component-shutdown/health.svg)

```
[![Health](https://phpackages.com/badges/net-bazzline-component-shutdown/health.svg)](https://phpackages.com/packages/net-bazzline-component-shutdown)
```

###  Alternatives

[phpoffice/common

PHPOffice Common

23512.3M36](/packages/phpoffice-common)[tomatophp/filament-icons

Picker &amp; Table Column &amp; Icons Provider for FilamentPHP

3598.2k13](/packages/tomatophp-filament-icons)

PHPackages © 2026

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