{"id":16700130,"url":"https://github.com/ben-gibson/lifx-client","last_synced_at":"2026-03-17T18:36:42.703Z","repository":{"id":115471140,"uuid":"98738691","full_name":"ben-gibson/lifx-client","owner":"ben-gibson","description":"A PHP client library for the Lifx HTTP api","archived":false,"fork":false,"pushed_at":"2022-01-24T17:47:55.000Z","size":35,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-14T19:37:47.124Z","etag":null,"topics":["client-library","lifx","lifx-api","lifx-lights","php","php7"],"latest_commit_sha":null,"homepage":null,"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/ben-gibson.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-07-29T14:45:33.000Z","updated_at":"2023-05-29T17:52:44.000Z","dependencies_parsed_at":"2023-09-30T09:33:52.618Z","dependency_job_id":null,"html_url":"https://github.com/ben-gibson/lifx-client","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"febe60b51583ae8be9dc7de26f4db36b3b9e2da8"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ben-gibson/lifx-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ben-gibson%2Flifx-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ben-gibson%2Flifx-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ben-gibson%2Flifx-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ben-gibson%2Flifx-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ben-gibson","download_url":"https://codeload.github.com/ben-gibson/lifx-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ben-gibson%2Flifx-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30628419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["client-library","lifx","lifx-api","lifx-lights","php","php7"],"created_at":"2024-10-12T18:09:28.518Z","updated_at":"2026-03-17T18:36:42.686Z","avatar_url":"https://github.com/ben-gibson.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lifx client\n\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Software License][ico-license]](LICENSE.md)\n[![Build Status][ico-travis]][link-travis]\n[![Coverage Status][ico-scrutinizer]][link-scrutinizer]\n[![Quality Score][ico-code-quality]][link-code-quality]\n[![Total Downloads][ico-downloads]][link-downloads]\n\nA PHP client library for the Lifx HTTP api. \n\n## Install\n\nVia Composer\n\n``` bash\n$ composer require ben-gibson/lifx-client\n```\n\n## Usage\n\nBuild the Lifx service.\n\n``` php\n$lifx = new Lifx(\n    new \\GuzzleHttp\\Client(),\n    new Configuration(\n        'https://api.lifx.com',\n        'v1',\n        'my-token'\n    ),\n    new LightFactory()\n);\n```\n\nModify a single light.\n\n``` php\n$lights = $lifx-\u003elights();\n\n$light = $lights-\u003econnected()-\u003ecurrent();\n\n$light-\u003eturnOn();\n$light-\u003epickColour(Colour::red());\n$light-\u003emaximumBrightness();\n\n$lifx-\u003eupdate($light);\n```\n\nModify all lights.\n\n``` php\n$state = new State(Power::on(), Brightness::maximum(), Colour::green());\n\n$lifx-\u003ematchState(Selector::all(), $state);\n```\n\n## Change log\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Testing\n\n``` bash\n$ composer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.\n\n## Credits\n\n- [Ben Gibson][link-author]\n- [All Contributors][link-contributors]\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n[ico-version]: https://img.shields.io/packagist/v/ben-gibson/lifx-client.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-travis]: https://img.shields.io/travis/ben-gibson/lifx-client/master.svg?style=flat-square\n[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/ben-gibson/lifx-client.svg?style=flat-square\n[ico-code-quality]: https://img.shields.io/scrutinizer/g/ben-gibson/lifx-client.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/ben-gibson/lifx-client.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/ben-gibson/lifx-client\n[link-travis]: https://travis-ci.org/ben-gibson/lifx-client\n[link-scrutinizer]: https://scrutinizer-ci.com/g/ben-gibson/lifx-client/code-structure\n[link-code-quality]: https://scrutinizer-ci.com/g/ben-gibson/lifx-client\n[link-downloads]: https://packagist.org/packages/ben-gibson/lifx-client\n[link-author]: https://github.com/ben-gibson\n[link-contributors]: ../../contributors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fben-gibson%2Flifx-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fben-gibson%2Flifx-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fben-gibson%2Flifx-client/lists"}