bobbymaher / emitter
wrapper for emitter.io around bluerhinos/phpmqtt
Installs: 1 670
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 462
pkg:composer/bobbymaher/emitter
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', ), ) );