PHPackages                             patchlevel/worker - 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. [CLI &amp; Console](/categories/cli)
4. /
5. patchlevel/worker

ActiveLibrary[CLI &amp; Console](/categories/cli)

patchlevel/worker
=================

Gives the opportunity to build a stable worker that terminates properly when limits are exceeded.

1.5.0(5mo ago)2485.5k↓15.2%[1 issues](https://github.com/patchlevel/worker/issues)1MITPHPPHP ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0CI passing

Since Jul 11Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/patchlevel/worker)[ Packagist](https://packagist.org/packages/patchlevel/worker)[ Docs](https://github.com/patchlevel/worker)[ RSS](/packages/patchlevel-worker/feed)WikiDiscussions 1.6.x Synced 1mo ago

READMEChangelog (9)Dependencies (9)Versions (18)Used By (1)

[![Mutation testing badge](https://camo.githubusercontent.com/e9abdf0a681ce1044305ac528ad926781af1e2523c74a3e748e5c927e0f18822/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d25324670617463686c6576656c253246776f726b6572253246312e352e78)](https://dashboard.stryker-mutator.io/reports/github.com/patchlevel/worker/1.5.x)[![Latest Stable Version](https://camo.githubusercontent.com/ee3e94a3cc08bc65078428b6955d5f63f9ae5f1984af8f5bf459041fa03fd29a/68747470733a2f2f706f7365722e707567782e6f72672f70617463686c6576656c2f776f726b65722f76)](//packagist.org/packages/patchlevel/worker)[![License](https://camo.githubusercontent.com/041ad278a1348741957e4c7dfa4964b32a6044d6c64a6099298d87d433805e88/68747470733a2f2f706f7365722e707567782e6f72672f70617463686c6576656c2f776f726b65722f6c6963656e7365)](//packagist.org/packages/patchlevel/worker)

Worker
======

[](#worker)

Gives the opportunity to build a stable worker that terminates properly when limits are exceeded. It has now been outsourced by the [event-sourcing](https://github.com/patchlevel/event-sourcing) library as a separate library.

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

[](#installation)

```
composer require patchlevel/worker
```

Example
-------

[](#example)

```
