{"id":50996559,"url":"https://github.com/itskenny0/yeelight-php","last_synced_at":"2026-06-20T10:02:35.238Z","repository":{"id":237777160,"uuid":"94475983","full_name":"itskenny0/Yeelight-PHP","owner":"itskenny0","description":"Tiny, dynamic class to control Yeelight WiFi bulbs","archived":false,"fork":false,"pushed_at":"2018-11-01T12:45:12.000Z","size":2,"stargazers_count":24,"open_issues_count":2,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-03T06:10:34.991Z","etag":null,"topics":["php","smarthome","xiaomi","yeelight"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itskenny0.png","metadata":{"files":{"readme":"readme.txt","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-15T20:24:42.000Z","updated_at":"2024-05-03T06:10:36.669Z","dependencies_parsed_at":"2024-05-03T06:10:36.390Z","dependency_job_id":"d40e4bed-cbe6-4359-800a-8d524ec6a1d7","html_url":"https://github.com/itskenny0/Yeelight-PHP","commit_stats":null,"previous_names":["itskenny0/yeelight-php"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/itskenny0/Yeelight-PHP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itskenny0%2FYeelight-PHP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itskenny0%2FYeelight-PHP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itskenny0%2FYeelight-PHP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itskenny0%2FYeelight-PHP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itskenny0","download_url":"https://codeload.github.com/itskenny0/Yeelight-PHP/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itskenny0%2FYeelight-PHP/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34565244,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"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":["php","smarthome","xiaomi","yeelight"],"created_at":"2026-06-20T10:02:34.558Z","updated_at":"2026-06-20T10:02:35.232Z","avatar_url":"https://github.com/itskenny0.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"-\u003e Yeelight-PHP \u003c-\n\nThis is a tiny class to facilitate controlling the Yeelight WiFi bulbs by Xiaomi in PHP.\n\nFunction names are dynamic and respond to the API endpoints found in the Xiaomi docs:\nhttps://www.yeelight.com/download/Yeelight_Inter-Operation_Spec.pdf\n\nNo Composer or other crap - keep it minimal.\nThis script has no external dependencies other than some PHP 5.x version and the sockets extension.\n\nUsage:\n\n\u003c?php\nrequire \"Yeelight.class.php\";\n\n$yee = new Yeelight(\"10.0.0.201\", 55443);\n\n$yee-\u003eset_power(\"on\"); // power on\n$yee-\u003eset_rgb(0xFF0000); // color to red\n$yee-\u003eset_bright(50); // brightness to 50%\n\n$yee-\u003ecommit(); // changes are not sent to the bulb before commit() is called\n\nsleep(10);\n$yee-\u003eset_rgb(0x00FF00)-\u003eset_bright(100)-\u003ecommit(); // calls return the object for fast chaining of commands\n\n$status = $yee-\u003eget_prop(\"power\")-\u003ecommit(); // get current status\nprint_r($status);\n\n$yee-\u003edisconnect();\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitskenny0%2Fyeelight-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitskenny0%2Fyeelight-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitskenny0%2Fyeelight-php/lists"}