PHPackages                             revolt/event-loop-adapter-react - 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. revolt/event-loop-adapter-react

ActiveLibrary

revolt/event-loop-adapter-react
===============================

Makes any ReactPHP based library run on top of the Revolt event loop.

v1.1.1(2y ago)1794.6k↑89.3%15MITPHPPHP &gt;=8.1

Since Aug 29Pushed 2y ago7 watchersCompare

[ Source](https://github.com/revoltphp/event-loop-adapter-react)[ Packagist](https://packagist.org/packages/revolt/event-loop-adapter-react)[ RSS](/packages/revolt-event-loop-adapter-react/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (6)Versions (4)Used By (5)

event-loop-adapter-react
========================

[](#event-loop-adapter-react)

[![Stable](https://camo.githubusercontent.com/1cf378d574fdb63d2c0f4d89cb19d1c8fa0080ab98d15713363abc796ad9b2d9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73746162696c6974792d737461626c652d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/1cf378d574fdb63d2c0f4d89cb19d1c8fa0080ab98d15713363abc796ad9b2d9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73746162696c6974792d737461626c652d677265656e2e7376673f7374796c653d666c61742d737175617265)[![License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)

`revolt/event-loop-adapter-react` makes any [ReactPHP](https://reactphp.org/) library run on top of the [Revolt event loop](https://revolt.run).

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

[](#installation)

```
composer require revolt/event-loop-adapter-react
```

Usage
-----

[](#usage)

Everywhere where a ReactPHP library requires an instance of `LoopInterface`, you just pass `Loop::get()` as normal. We automatically set up everything to run the ReactPHP library on the [Revolt event loop](https://revolt.run/).

```
