Skip to content

Instantly share code, notes, and snippets.

View WyriHaximus's full-sized avatar
🐉
Breathing Fire

Cees-Jan Kiewiet WyriHaximus

🐉
Breathing Fire
View GitHub Profile
@WyriHaximus
WyriHaximus / react-guzzle.php
Last active September 10, 2015 05:27 — forked from mtdowling/react-guzzle.php
React, Guzzle, and AWS SDK for PHP integration
<?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();
<?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';
@WyriHaximus
WyriHaximus / auto_helper.php
Created October 31, 2010 10:42
Added some code to make it work with plugins
<?php
/**
* AutoHelperView
* Provides automatic helper loading for views.
*
* @author Joe Beeson <jbeeson@gmail.com>
* @auther Cees-Jan Kiewiet <ceesjank@gmail.com>
*/
class AutoHelperView extends View {