kitchenu/ssel

PHP Server-Sent Events library

0.1.0 2018-04-11 17:17 UTC

README

Build Status License

PHP Server-Sent Events library.

Installation

$ composer require kitchenu/ssel

Usage

<?php

require 'vendor/autoload.php';

$app = new Ssel\App();

$app->addTimerEvent('test', function () {
    return date('Y-m-d h:i:s');
});

$app->run();