Skip to content

DusanKasan/RxPHP

This branch is 156 commits behind ReactiveX/RxPHP:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b93d296 · Oct 14, 2016
Oct 14, 2016
Apr 22, 2016
Oct 14, 2016
Oct 14, 2016
Sep 10, 2016
Oct 4, 2016
Aug 23, 2016
Jul 26, 2016
Apr 16, 2013
Sep 10, 2016
Oct 4, 2016
Sep 10, 2016

Repository files navigation

RxPHP

Reactive extensions for PHP. The reactive extensions for PHP are a set of libraries to compose asynchronous and event-based programs using observable collections and LINQ-style query operators in PHP.

Build Status Coverage Status

Installation

Install dependencies using composer.

$ composer.phar require reactivex/rxphp

Example

$source = \Rx\Observable::fromArray([1, 2, 3, 4]);

$subscription = $source->subscribe(new \Rx\Observer\CallbackObserver(
    function ($x) {
        echo 'Next: ', $x, PHP_EOL;
    },
    function (Exception $ex) {
        echo 'Error: ', $ex->getMessage(), PHP_EOL;
    },
    function () {
        echo 'Completed', PHP_EOL;
    }
));

//Next: 1
//Next: 2
//Next: 3
//Next: 4
//Completed

Quick start for demos

$ composer.phar install

Have fun running the demos in /demo.

License

RxPHP is licensed under the MIT License - see the LICENSE file for details

About

Reactive extensions for PHP

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%