{"id":33547629,"url":"https://github.com/airootuser/laravel-mqtt-publish","last_synced_at":"2025-11-27T06:04:27.044Z","repository":{"id":62520511,"uuid":"76509206","full_name":"AIRootUser/laravel-mqtt-publish","owner":"AIRootUser","description":"A laravel mqtt publisher","archived":false,"fork":false,"pushed_at":"2018-10-14T17:32:00.000Z","size":55,"stargazers_count":21,"open_issues_count":7,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-19T21:05:13.391Z","etag":null,"topics":["laravel","mqtt","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AIRootUser.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-15T00:41:02.000Z","updated_at":"2023-10-23T06:47:14.000Z","dependencies_parsed_at":"2022-11-02T15:16:07.578Z","dependency_job_id":null,"html_url":"https://github.com/AIRootUser/laravel-mqtt-publish","commit_stats":null,"previous_names":["airootuser/laravel-mqtt-publish","luzhuqun/laravel-mqtt-publish"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AIRootUser/laravel-mqtt-publish","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AIRootUser%2Flaravel-mqtt-publish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AIRootUser%2Flaravel-mqtt-publish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AIRootUser%2Flaravel-mqtt-publish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AIRootUser%2Flaravel-mqtt-publish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AIRootUser","download_url":"https://codeload.github.com/AIRootUser/laravel-mqtt-publish/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AIRootUser%2Flaravel-mqtt-publish/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286079811,"owners_count":27282121,"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","status":"online","status_checked_at":"2025-11-27T02:00:05.795Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["laravel","mqtt","php"],"created_at":"2025-11-27T06:04:26.076Z","updated_at":"2025-11-27T06:04:27.038Z","avatar_url":"https://github.com/AIRootUser.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Mqtt Publisher\nMqtt is used to publish messages from backend to andriod.\n\n### Getting start\n`\n    composer require luzhuqun/laravel-mqtt-publish\n`\n### How to use\n\n    use Lzq\\Mqtt\\SamMessage;\n    use Lzq\\Mqtt\\SamConnection;\n    \n    $conn = new SAMConnection();//create a new connection object\n\n    $conn-\u003econnect('mqtt', array('SAM_HOST' =\u003e '192.168.10.147', 'SAM_PORT' =\u003e '1883'));//start initialise the connection\n\n    $msgCpu = new SAMMessage('hehe');//create a new MQTT message with the output of the shell command as the body\n\n    $conn-\u003esend('topic://'.'tokudu/ab7867d9fd60db65', $msgCpu);//send the message on the topic cpu\n\n    $conn-\u003edisconnect();\n\n### Learn more\nA complet mqtt service incluede publisher, service and subscriber.\n##### service \n[mosquitto](https://github.com/eclipse/mosquitto)\n##### subscriber\n[AndroidPushNotificationsDemo](https://github.com/tokudu/AndroidPushNotificationsDemo)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fairootuser%2Flaravel-mqtt-publish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fairootuser%2Flaravel-mqtt-publish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fairootuser%2Flaravel-mqtt-publish/lists"}