https://github.com/kraken-php/loop
[DEPRECATED] Kraken\Loop component, standalone part of kraken-php/framework.
https://github.com/kraken-php/loop
Last synced: 5 months ago
JSON representation
[DEPRECATED] Kraken\Loop component, standalone part of kraken-php/framework.
- Host: GitHub
- URL: https://github.com/kraken-php/loop
- Owner: kraken-php
- Created: 2016-09-15T16:00:53.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-17T17:48:33.000Z (almost 9 years ago)
- Last Synced: 2025-11-16T03:10:17.227Z (7 months ago)
- Language: PHP
- Homepage: http://kraken-php.com
- Size: 33.2 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kraken Loop Component
[](https://travis-ci.org/kraken-php/framework)
[](https://packagist.org/packages/kraken-php/loop)
[](https://packagist.org/packages/kraken-php/loop)
[](https://packagist.org/packages/kraken-php/loop)
[](https://packagist.org/packages/kraken-php/framework)
[](https://github.com/kraken-php/framework)
> **Note:** This repository is a part of [Kraken Framework][3], 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][5] or see our
[asynchronous application skeleton][4] example.
## 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
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
See more examples in [official documentation][2].
## Requirements
* PHP-5.6 or PHP-7.0+,
* UNIX or Windows OS.
## Installation
```
composer require kraken-php/loop
```
## Tests
Tests are provided within our write-only [Framework repository][3].
## Documentation
Documentation for this module can be found in the [official documentation][2].
## Contributing
This library is read-only subtree split of Kraken Framework. To make contributions, please go to [Framework repository][3].
## License
This library licensed under the MIT license, see more information in [Kraken Framework][3] license section.
[1]: http://kraken-php.com
[2]: http://kraken-php.com/docs/api-log
[3]: https://github.com/kraken-php/framework
[4]: https://github.com/kraken-php/kraken
[5]: https://github.com/kraken-php