PHPackages                             hhreact/ampreactor - 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. hhreact/ampreactor

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

hhreact/ampreactor
==================

126[1 issues](https://github.com/acrylic-origami/AmpReactor/issues)PHP

Since Dec 9Pushed 7y ago1 watchersCompare

[ Source](https://github.com/acrylic-origami/AmpReactor)[ Packagist](https://packagist.org/packages/hhreact/ampreactor)[ RSS](/packages/hhreact-ampreactor/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

AmpReactor — adding some InteractiveX to PHP
--------------------------------------------

[](#ampreactor--adding-some-interactivex-to-php)

```
$ composer require hhreact/ampreactor

```

### Getting started

[](#getting-started)

#### The what

[](#the-what)

If you know what **InteractiveX** is, AmpReactor matches the InteractiveX philosophy closely, really only [straying significantly for the binding operators](#operators).

If, alternatively, you know what **ReactiveX** is, InteractiveX is the "pull" analogue, where enumerables take the place of observables.

If you know about AmPHP's [`Iterator`](https://docs.hhvm.com/hack/async/generators#sending-and-raising), AmpReactor lets you clone, reduce and expand async `Iterator`s, and lets you enforce precise policies on buffering.

#### In action

[](#in-action)

```
