PHPackages                             envoylope/event-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. envoylope/event-loop

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

envoylope/event-loop
====================

v0.1.0(2y ago)16MITPHPPHP &gt;=8.1

Since May 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/envoylope/event-loop)[ Packagist](https://packagist.org/packages/envoylope/event-loop)[ RSS](/packages/envoylope-event-loop/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (8)Versions (2)Used By (0)

Envoylope EventLoop
===================

[](#envoylope-eventloop)

[![Build Status](https://github.com/envoylope/event-loop/workflows/CI/badge.svg)](https://github.com/envoylope/event-loop/actions?query=workflow%3ACI)

Transmits AMQP heartbeats for [Envoylope](https://github.com/envoylope) using a [ReactPHP](https://reactphp.org/) [EventLoop](https://github.com/reactphp/event-loop).

Usage
-----

[](#usage)

Install with Composer:

```
$ composer require envoylope/event-loop
```

(Optionally) install Tasque and Tasque EventLoop
------------------------------------------------

[](#optionally-install-tasque-and-tasque-eventloop)

If you are running a traditional PHP application, a [ReactPHP](https://reactphp.org/) [EventLoop](https://github.com/reactphp/event-loop) may regularly be blocked by synchronous logic/IO. This can be mitigated somewhat by [Tasque](https://github.com/nytris/tasque) [EventLoop](https://github.com/nytris/tasque-event-loop), which implements [green threads](https://en.wikipedia.org/wiki/Green_thread) for PHP.

See the respective usage instructions linked above for configuring the Tasque/EventLoop Nytris packages.

### Configuring platform boot config

[](#configuring-platform-boot-config)

Once the [PHP AMQP-Compat](https://github.com/asmblah/php-amqp-compat) Nytris package is configured, this scheduler will be used:

`nytris.config.php`

```
