{"id":14971058,"url":"https://github.com/unreal4u/mqtt","last_synced_at":"2025-10-26T14:31:00.386Z","repository":{"id":57075732,"uuid":"106336881","full_name":"unreal4u/mqtt","owner":"unreal4u","description":"PHP7+ MQTT client with **full** protocol support","archived":false,"fork":false,"pushed_at":"2020-09-22T22:34:16.000Z","size":455,"stargazers_count":15,"open_issues_count":4,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-31T20:17:12.473Z","etag":null,"topics":["api","mqtt","php","php7"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unreal4u.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-09T21:23:40.000Z","updated_at":"2023-03-20T23:07:25.000Z","dependencies_parsed_at":"2022-08-24T14:55:45.940Z","dependency_job_id":null,"html_url":"https://github.com/unreal4u/mqtt","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unreal4u%2Fmqtt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unreal4u%2Fmqtt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unreal4u%2Fmqtt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unreal4u%2Fmqtt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unreal4u","download_url":"https://codeload.github.com/unreal4u/mqtt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238347515,"owners_count":19456949,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","mqtt","php","php7"],"created_at":"2024-09-24T13:44:39.568Z","updated_at":"2025-10-26T14:31:00.064Z","avatar_url":"https://github.com/unreal4u.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# unreal4u/MQTT\n\nComplete PHP7.1+ MQTT client with full support for \n[the MQTT version 3.1.1 protocol](http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/mqtt-v3.1.1.html). This package is an\nentire rewrite of [McFizh/libMQTT](https://github.com/McFizh/libMQTT).\n\n## This project in badges\n[![Latest Stable Version](https://poser.pugx.org/unreal4u/mqtt/v/stable)](https://packagist.org/packages/unreal4u/mqtt)\n[![Total Downloads](https://poser.pugx.org/unreal4u/mqtt/downloads)](https://packagist.org/packages/unreal4u/mqtt)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/unreal4u/mqtt/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/unreal4u/mqtt/?branch=master)\n[![Code Coverage](https://scrutinizer-ci.com/g/unreal4u/mqtt/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/unreal4u/mqtt/?branch=master)\n[![Build Status](https://travis-ci.org/unreal4u/mqtt.svg)](https://travis-ci.org/unreal4u/mqtt)\n[![License](https://poser.pugx.org/unreal4u/mqtt/license)](https://packagist.org/packages/unreal4u/mqtt)\n\n## What is MQTT?\n\nPlease read the [following wiki page](https://github.com/unreal4u/mqtt/wiki/What-is-MQTT%3F) for that :)\nDon't forget to read the other articles which may contain more useful information: \n[What is QoS?](https://github.com/unreal4u/mqtt/wiki/What-is-QoS%3F)  \n[Difference between QoS and Retainability](https://github.com/unreal4u/mqtt/wiki/Difference-between-retain-and-QoS)  \n[What is ClientId?](https://github.com/unreal4u/mqtt/wiki/Why-is-the-ClientId-important%3F)  \n\n## Capabilities of this package: \n\nThis package is able to:\n- Connect to the broker. You can connect with virtually all optional parameters the protocol supports, including Will\nMessage. The only exception to the rule is the clean session flag. This is not tested and may or may not work as\nintended.\n- Publish QoS level 0, 1 and 2 messages. All protocol supported parameters are also supported, such as retained messages\nand other options.\n- Subscribe on QoS level 0, 1 and 2 topics. Connection handling will be done automatically, no need to fiddle with\nPingRequests and alike.\n- Filters of topics are those used on the protocol itself, which eliminates the likeliness of bugs that may occur from\nincorrectly parsing such filters.\n\nThis package uses sockets to communicate (a)synchronously with the broker. If you don't want this, you are free to\ncreate your own client, for which you'll just have to implement an interface.\n\n## Examples\n\nThis package has many examples detailing the many things you can do with it. Please check the \n[examples directory](https://github.com/unreal4u/mqtt/tree/master/examples) for more information. In case of questions\nor doubt, [open up an Issue](https://github.com/unreal4u/mqtt/issues/new) or submit a\n[Pull Request](https://github.com/unreal4u/mqtt/pulls) if you feel the need to clarify, correct or add more examples.\n\n# References\n**[mqtt-v3.1.1-plus-errata01]**\n\nMQTT Version 3.1.1 Plus Errata 01. Edited by Andrew Banks and Rahul Gupta. 10 December 2015. OASIS Standard Incorporating Approved Errata 01. \nhttp://docs.oasis-open.org/mqtt/mqtt/v3.1.1/errata01/os/mqtt-v3.1.1-errata01-os-complete.html. Latest\nversion: http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/mqtt-v3.1.1.html.\n\n**Original library that served as inspiration for this one**\n[McFizh/libMQTT](https://github.com/McFizh/libMQTT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funreal4u%2Fmqtt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funreal4u%2Fmqtt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funreal4u%2Fmqtt/lists"}