Skip to content

bobbymaher/emitter.io-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

                    ),
                )
            );

About

composer package to publish to emitter

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%