PHPackages                             daverandom/loopio - 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. daverandom/loopio

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

daverandom/loopio
=================

Provides interoperability for components using the React and Alert event loops

v0.1.0(11y ago)614MITPHPPHP &gt;=5.4.0

Since Jun 18Pushed 11y ago2 watchersCompare

[ Source](https://github.com/DaveRandom/Loopio)[ Packagist](https://packagist.org/packages/daverandom/loopio)[ RSS](/packages/daverandom-loopio/feed)WikiDiscussions master Synced 1w ago

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

Loopio
======

[](#loopio)

Provides interoperability between [Alert](https://github.com/rdlowrey/Alert) and [React](https://github.com/reactphp/react).

This library is simply a set of adapters that will allow you to use applications designed around the React event loop to work with an Alert event loop, and vice versa. It does not provide any complete functionality on its own.

Adapters are provided for all stable versions of React up to the 0.4.x series, and all stable versions of Alert up to the 0.8.x series, excluding the initial Alert release (0.1.0).

\###Installation

Preferably via [Composer](https://getcomposer.org/).

```
"require": {
    "daverandom/loopio": "~0.1.0"
}

```

\###Usage

The best way to create the correct adapter for the installed React and Alert versions is to use the appropriate method of `Loopio\LoopFactory`. This will auto-detect the installed versions of Alert and React and return the correct adapter for your combination.

---

If you are using React as your primary event loop and you want to use a component designed around Alert in your application (such as [Artax](https://github.com/rdlowrey/Artax)), an adapter can be created in the following manner:

```
