PHPackages                             flytachi/winter-thread - 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. [Framework](/categories/framework)
4. /
5. flytachi/winter-thread

ActiveLibrary[Framework](/categories/framework)

flytachi/winter-thread
======================

Winter framework Thread component

v1.1.0(3mo ago)1192↓27.8%1MITPHPPHP &gt;=8.1

Since Dec 18Pushed 3mo agoCompare

[ Source](https://github.com/Flytachi/winter-thread)[ Packagist](https://packagist.org/packages/flytachi/winter-thread)[ RSS](/packages/flytachi-winter-thread/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (7)Used By (1)

Winter Thread: A Modern Process Control Library for PHP
=======================================================

[](#winter-thread-a-modern-process-control-library-for-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/52f623912eb6fb984078619d594d7073a678b46473e2824d18a2207c3acb60a6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666c7974616368692f77696e7465722d7468726561642e737667)](https://packagist.org/packages/flytachi/winter-thread)[![PHP Version Require](https://camo.githubusercontent.com/c0a3d91a7f0418b5596220865a9810548d5cae251bd6ff5fdf041413a58428d7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f666c7974616368692f77696e7465722d7468726561642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/flytachi/winter-thread)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE)

**Winter Thread** provides a clean, object-oriented API for running and controlling background processes in PHP, simulating a traditional threading model for parallel and long-running tasks.

It abstracts away the complexities of `proc_open` and `posix` signals into a powerful and easy-to-use interface.

Key Features
------------

[](#key-features)

- 🚀 **Fluent, Object-Oriented API**: Manage background processes as objects.
- ⏯️ **Full Process Control**: `start()`, `join()`, `pause()`, `resume()`, `terminate()`, and `kill()`.
- 🏷️ **Advanced Process Naming**: Identify your processes easily with namespaces, names, and tags.
- 🔒 **Secure by Default**: Optional signed serialization for closures via `opis/closure`.
- 🧩 **Extensible**: Easily override the runner script for deep framework integration.
- ☕ **Java-like API**: Familiar method names like `isAlive()` and `join()` for an easy learning curve.

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

[](#requirements)

- PHP &gt;= 8.1
- `ext-pcntl`
- `ext-posix`
- (Optional) `opis/closure` for serializing closures.

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

[](#installation)

```
composer require flytachi/winter-thread
```

Quick Start
-----------

[](#quick-start)

Here's how easy it is to run a long-running task in the background without blocking your main script.

```
