PHPackages                             evertharmeling/sparkcore - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. evertharmeling/sparkcore

ActiveLibrary

evertharmeling/sparkcore
========================

PHP classes who help interacting with the sparkcore. For example consume Server Side Events.

1.0.0(11y ago)3361[1 issues](https://github.com/evertharmeling/sparkcore/issues)MITPHPPHP &gt;=5.4.0

Since Jun 29Pushed 11y ago1 watchersCompare

[ Source](https://github.com/evertharmeling/sparkcore)[ Packagist](https://packagist.org/packages/evertharmeling/sparkcore)[ Docs](https://github.com/evertharmeling/sparkcore)[ RSS](/packages/evertharmeling-sparkcore/feed)WikiDiscussions develop Synced today

READMEChangelogDependencies (1)Versions (3)Used By (0)

sparkcore
=========

[](#sparkcore)

PHP classes who help interacting with the sparkcore. For example consume Server Side Events.

Implementation
--------------

[](#implementation)

First create your own `Sparkhose` class which extends `SparkCore\Stream\Sparkhose`.

This library is implemented as an abstract class (Sparkhose) that is extended to utilize the SparkCore event stream.

This design choice was made to allow the utilization of the library with the minimal amount of code to be written, whilst keeping things in a PHP/OO-style way (ie: no callbacks, etc).

In its most simple form, you need to extended the class and implement an enqueueEvent() method:

```
