PHPackages                             kraken-php/loop - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. kraken-php/loop

ActiveLibrary[Queues &amp; Workers](/categories/queues)

kraken-php/loop
===============

Kraken Framework Loop Component.

v0.4.1(9y ago)692.4k—9.4%118MITPHPPHP &gt;=5.6.7

Since Sep 16Pushed 9y ago1 watchersCompare

[ Source](https://github.com/kraken-php/loop)[ Packagist](https://packagist.org/packages/kraken-php/loop)[ Docs](http://kraken-php.com)[ RSS](/packages/kraken-php-loop/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (9)Used By (18)

Kraken Loop Component
=====================

[](#kraken-loop-component)

[![Build Status](https://camo.githubusercontent.com/af15010c36476fc4e6c49984421bf2b84750be2adc45fc8bebf1b90d9a7b52c3/68747470733a2f2f7472617669732d63692e6f72672f6b72616b656e2d7068702f6672616d65776f726b2e737667)](https://travis-ci.org/kraken-php/framework)[![Total Downloads](https://camo.githubusercontent.com/5ffb859d788dbc8f1420cc41064332cc7ceb92c86c5d1153e0f60c33e96a19eb/68747470733a2f2f706f7365722e707567782e6f72672f6b72616b656e2d7068702f6c6f6f702f646f776e6c6f616473)](https://packagist.org/packages/kraken-php/loop)[![Latest Stable Version](https://camo.githubusercontent.com/6b03ca4ade8205b3bfb7bf3f6abc664da1a8dadc40d070ca781508fd7e34a474/68747470733a2f2f706f7365722e707567782e6f72672f6b72616b656e2d7068702f6c6f6f702f762f737461626c65)](https://packagist.org/packages/kraken-php/loop)[![Latest Unstable Version](https://camo.githubusercontent.com/fabc13014686f7474fd7e6c488624ebee0874d48e796caab7cab12ded4875c56/68747470733a2f2f706f7365722e707567782e6f72672f6b72616b656e2d7068702f6c6f6f702f762f756e737461626c65)](https://packagist.org/packages/kraken-php/loop)[![License](https://camo.githubusercontent.com/7b3d640f212d4ca5dfa30751f70cef9fd309f7b19fdd33448b776f26fdfdd42f/68747470733a2f2f706f7365722e707567782e6f72672f6b72616b656e2d7068702f6672616d65776f726b2f6c6963656e7365)](https://packagist.org/packages/kraken-php/framework)[![Kraken Compatible](https://camo.githubusercontent.com/1b4bd0ba007b4666bb6e1a081a7aeeafd8c9cfcaeab74fc4121ac3e353e3b51f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6b72616b656e2d636f6d70617469626c652d3662303261662e737667)](https://github.com/kraken-php/framework)

> **Note:** This repository is a part of [Kraken Framework](https://github.com/kraken-php/framework), but **can be used freely as standalone library**. If you are interested in more asynchronous components for PHP, check out the rest of [Kraken repository](https://github.com/kraken-php) or see our [asynchronous application skeleton](https://github.com/kraken-php/kraken) example.

Description
-----------

[](#description)

Loop is a component that provides abstraction layer for writing asynchronous code in PHP on single thread or process with usage of single or multiple loops.

Feature Highlights
------------------

[](#feature-highlights)

Loop features:

- Interface for writing asynchronous code on single Thread or Process,
- File descriptor polling,
- One-time and periodic timers,
- Deferred execution of callbacks,
- Support for StreamSelect -based loops,
- Support for LibEvent -based loops,
- Support for LibEv -based loops,
- Support for ExtEvent -based loops,
- Support for using multiple loops with multiple execution flows,
- Support for switching between loops and importing/exporting its unfinished queues,
- ReactPHP compatibility,
- ReactPHP EventLoop adapters,
- Kraken Framework compatibility,
- ...and more.

Examples
--------

[](#examples)

See more examples in [official documentation](http://kraken-php.com/docs/api-log).

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

[](#requirements)

- PHP-5.6 or PHP-7.0+,
- UNIX or Windows OS.

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

[](#installation)

```
composer require kraken-php/loop

```

Tests
-----

[](#tests)

Tests are provided within our write-only [Framework repository](https://github.com/kraken-php/framework).

Documentation
-------------

[](#documentation)

Documentation for this module can be found in the [official documentation](http://kraken-php.com/docs/api-log).

Contributing
------------

[](#contributing)

This library is read-only subtree split of Kraken Framework. To make contributions, please go to [Framework repository](https://github.com/kraken-php/framework).

License
-------

[](#license)

This library licensed under the MIT license, see more information in [Kraken Framework](https://github.com/kraken-php/framework) license section.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity53

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

Recently: every ~52 days

Total

8

Last Release

3340d ago

PHP version history (2 changes)v0.3.0PHP &gt;=5.5.9

v0.4.1PHP &gt;=5.6.7

### Community

Maintainers

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

---

Top Contributors

[![khelle](https://avatars.githubusercontent.com/u/5642657?v=4)](https://github.com/khelle "khelle (29 commits)")

---

Tags

eventevent-loopasyncasynchronousloopkrakenkraken-phplibeventlibev

### Embed Badge

![Health badge](/badges/kraken-php-loop/health.svg)

```
[![Health](https://phpackages.com/badges/kraken-php-loop/health.svg)](https://phpackages.com/packages/kraken-php-loop)
```

###  Alternatives

[amphp/amp

A non-blocking concurrency framework for PHP applications.

4.4k133.8M433](/packages/amphp-amp)[revolt/event-loop

Rock-solid event loop for concurrent PHP applications.

92553.8M226](/packages/revolt-event-loop)[recoil/recoil

Asynchronous coroutines for PHP 7.

79062.9k7](/packages/recoil-recoil)[recoil/react

Integrate Recoil with ReactPHP.

32286.7k13](/packages/recoil-react)[async-interop/event-loop

An event loop interface for interoperability.

1696.2k4](/packages/async-interop-event-loop)[recoil/api

The public Recoil API, for library and application developers.

13301.2k6](/packages/recoil-api)

PHPackages © 2026

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