qzfzz / emitter.io-php

composer package to publish to emitter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

php SDK for publishing to emitter https://emitter.io/

a wrapper around bluerhinos/phpmqtt

currently only publishes


        $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',

                    ),
                )
            );


To install via Composer
-----------------------
`composer require bobbymaher/emitter`

or add to composer:

 "bobbymaher/emitter": "0.2.*"

About

composer package to publish to emitter

License:Other


Languages

Language:PHP 100.0%