Skip to content

Instantly share code, notes, and snippets.

<?
include 'ActivityFeed.php';
$feed = new ActivityFeed();
$feed->add(123, 'Nicky followed Kelly', time() + 5);
$feed->add(123, 'Nicky followed Josh', time() + 10);
$feed->add(123, 'Nicky earned 1200 points for being awesome!', time() + 30);
<?
include_once 'iredis.php';
class ActivityFeed {
private $redis;
public function __construct(){
$this->redis = new iRedis();