ssel 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();