PHP code example of rxthunder / react-php

1. Go to this page and download the library: Download rxthunder/react-php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

rxthunder / react-php example snippets


use React\EventLoop\Factory;
use RxThunder\ReactPHP\EventLoop;

$ev = EventLoop::getLoop();

$other_ev = Factory::create();
EventLoop::setLoop($other_ev);

composer install rxthunder/react-php