MQTT broker and PHP application

3,278 views
Skip to first unread message

Sophianahoza

unread,
Dec 6, 2012, 12:12:40 AM12/6/12
to mq...@googlegroups.com
Hi guys,
 I need help on how to interact MQTT broker with PHP application that can run on a server. There is another application on android device that publishes messages to MQTT broker, I need the server to receive these messages(subscribe) and also to be able to publish information to the broker. How can that be done using PHP application on the server? I f some resources are available, it will help.

andyp...@gmail.com

unread,
Dec 6, 2012, 3:36:16 AM12/6/12
to mq...@googlegroups.com
I would probably try phpMQTT (listed at http://mqtt.org/software#php) although I'm not sure it has been updated much since it first came out. It does have both publish and subscribe functions.

If you Google for phpMQTT you'll find a few blog posts talking about how to use it.


On Thu, Dec 6, 2012 at 6:12 AM, Sophianahoza <sophia...@gmail.com> wrote:
Hi guys,
 I need help on how to interact MQTT broker with PHP application that can run on a server. There is another application on android device that publishes messages to MQTT broker, I need the server to receive these messages(subscribe) and also to be able to publish information to the broker. How can that be done using PHP application on the server? I f some resources are available, it will help.

--
--
To learn more about MQTT please visit http://mqtt.org
 
To post to this group, send email to mq...@googlegroups.com
To unsubscribe from this group, send email to
mqtt+uns...@googlegroups.com
 
For more options, visit this group at
http://groups.google.com/group/mqtt
 
 
 



--
Andy Piper | Farnborough, Hampshire (UK)
blog: http://andypiper.co.uk   |   skype: andypiperuk
twitter: @andypiper  |  images: http://www.flickr.com/photos/andypiper

Pious X

unread,
Dec 7, 2012, 12:21:14 AM12/7/12
to mq...@googlegroups.com
Hi,

You could download the mosquitto broker which is an open source mqtt broker.
You can get the broker for the OS you are using.
http://mosquitto.org/download/

Additionally,  you could download the mqtt client for php with the following link.
https://github.com/bluerhinos/phpMQTT

Regards,
Pious Deepak.


On Thu, Dec 6, 2012 at 10:42 AM, Sophianahoza <sophia...@gmail.com> wrote:
Hi guys,
 I need help on how to interact MQTT broker with PHP application that can run on a server. There is another application on android device that publishes messages to MQTT broker, I need the server to receive these messages(subscribe) and also to be able to publish information to the broker. How can that be done using PHP application on the server? I f some resources are available, it will help.

--
Reply all
Reply to author
Forward
0 new messages