Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Philips Hue

Laravel Philips Hue Laravel Package

cannonb4ll/laravel-philips-hue

Laravel wrapper for the Philips Hue API that lets you discover bridges, control lights, groups and scenes, and manage colors, brightness and schedules directly from your Laravel app. Simple configuration and an expressive interface make smart-home automation easy to add.

View on GitHub
Deep Wiki
Context7

Laravel Philips Hue package to control your lights with remote support

Frequently asked questions about Laravel Philips Hue
Does cannonb4ll/laravel-philips-hue support Laravel 9, 10 or 11?
Not out of the box. The package was released in November 2020 and targets the Laravel 6/7 and PHP 7.x era, so its illuminate/* constraints will likely block installation on Laravel 9+ with PHP 8 and Symfony 6. Expect Composer conflicts or deprecated HTTP client behavior unless you fork it and update the constraints yourself. For a greenfield Laravel 10 or 11 project, a small custom Hue v2 client is usually the safer route.
How do I install and configure this Philips Hue package in Laravel?
Install it with Composer, publish the package config file, then supply your Hue bridge IP address and username (or remote OAuth credentials if you use the cloud path). After that you can call the facade directly from controllers, jobs or scheduled tasks. The mechanical setup is quick; the real effort is in token handling, error handling and rate limiting around it.
What can I control with this Laravel Hue wrapper?
It wraps the Philips Hue API so you can discover bridges, control lights, groups and scenes, and manage colors, brightness and schedules from your Laravel app. That covers typical smart-home automation such as status indicators, alerting and demo environments. It is a thin integration layer rather than a full domain model for lighting.
Does this package work with the Hue v2 / CLIP API?
It most likely targets the legacy local v1 API and possibly the first-generation Remote API, since it was published in 2020. Hue's strategic direction is the v2 CLIP API with HTTPS, application keys and an event stream. That means the package sits on a deprecation curve regardless of code quality, so verify the targeted API version before committing.
Is cannonb4ll/laravel-philips-hue still maintained and safe for production?
The repository is archived with no upstream maintainer, meaning no security patches, no compatibility updates and no issue triage. It has roughly 88 stars, so community forks are unlikely to be well maintained either. Old Guzzle and PSR dependencies with loose constraints also create a supply-chain concern for regulated or public-facing environments.
How should I handle Hue rate limits and errors when using this package?
Hue bridges frequently return HTTP 200 responses that contain per-command error objects in the body, and rate-limit violations show up as 429s or silently dropped commands. A thin wrapper may not surface these as exceptions, which is dangerous for anything user-visible. Dispatch bridge calls from queued jobs so you get retries and backoff, and keep commands within Hue's recommended limits of about 10 light commands and 1 group command per second.
Does the package handle remote Hue access and OAuth token refresh?
The package advertises remote support, but OAuth token persistence and refresh are likely left to the host application. You should confirm whether the remote path still works against current Hue cloud endpoints before relying on it. If you need remote control in production, plan to own the token lifecycle yourself.
Should I use this package or write my own Philips Hue client?
If lighting is a peripheral capability such as alerting or status indicators, a small HTTP client or a minimal v2 client is often simpler than adding an unmaintained dependency. The package is only a thin layer over the Hue API, so you are not gaining much abstraction. Adopt it mainly to unblock a demo quickly, not to build a long-term platform capability.
How do I test Laravel code that calls the Hue facade?
Do not let the package's facade leak into application code. Define an internal LightingGateway interface with methods such as setState, scene, group and health, and implement it with this package. In tests you can bind a fake implementation of that interface, which keeps your test suite fast and makes a later swap to a v2 client a contained change.
What is the migration path away from this package on newer Laravel versions?
For Laravel 10 or 11, either build a small Hue v2 client using HTTPS, an application key and the event stream, or fork the package to update its illuminate/*, PHP and Guzzle constraints. Keep the package at the edge behind your own gateway interface so the eventual replacement touches one class. The fork cost depends heavily on the size of the codebase and whether it ships any test coverage you can inherit.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast