bobbymaher / emitter
There is no license information available for the latest version (0.2.6) of this package.
wrapper for emitter.io around bluerhinos/phpmqtt
0.2.6
2018-05-23 11:34 UTC
Requires
- php: >=5.3
README
# A php SDK for publishing to emitter https://emitter.io/ To install via Composer ----------------------- - `composer require bobbymaher/emitter` or add to composer: - "bobbymaher/emitter": "0.2.*" a wrapper around bluerhinos/phpmqtt it currently only publishes, if you want to add features open a PR $emitter = new \emitter\emitter(array( 'server' => 'emitter.tld', 'port' => '8080', )); $emitterChannel = 'test'; $emitterKey = 'keykekyguihetgiuhui'; $emitter->publish( array( 'key' => $emitterKey, 'channel' => $emitterChannel, 'ttl' => 5, 'message' => array( 'blah' => 'gggg', 'name' => 'jimbob', ), ) );