This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require 'vendor/autoload.php'; | |
use GuzzleHttp\Client; | |
use GuzzleHttp\HandlerStack; | |
use GuzzleHttp\Psr7\Response; | |
use React\EventLoop\Factory; | |
use WyriHaximus\React\GuzzlePsr7\HttpClientAdapter; | |
$loop = Factory::create(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$loader = include __DIR__ . '/../vendor/autoload.php'; | |
$loop = React\EventLoop\Factory::create(); | |
$counter = 0; | |
$timer = $loop->addPeriodicTimer(10, function($timer) use($loop, &$counter) { | |
$counter++; | |
$type = 'None'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* AutoHelperView | |
* Provides automatic helper loading for views. | |
* | |
* @author Joe Beeson <[email protected]> | |
* @auther Cees-Jan Kiewiet <[email protected]> | |
*/ | |
class AutoHelperView extends View { |