PHPackages                             cannonb4ll/laravel-philips-hue - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. cannonb4ll/laravel-philips-hue

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

cannonb4ll/laravel-philips-hue
==============================

Laravel Philips Hue package to control your lights with remote support

1.6(5y ago)872.6k11[3 issues](https://github.com/Cannonb4ll/laravel-philips-hue/issues)MITPHPPHP ^7.1

Since Feb 24Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Cannonb4ll/laravel-philips-hue)[ Packagist](https://packagist.org/packages/cannonb4ll/laravel-philips-hue)[ RSS](/packages/cannonb4ll-laravel-philips-hue/feed)WikiDiscussions master Synced yesterday

READMEChangelog (8)Dependencies (4)Versions (13)Used By (0)

Laravel Philips Hue 💡
=====================

[](#laravel-philips-hue-)

Introduction
------------

[](#introduction)

I created this package for my company Ploi () to control our office lights. For example, when we receive a support ticket, our lights briefly light up green (Ploi's green color), fade out and in a bit.

This package makes it possible to easily manage your lights. Easily trigger your lights whenever a support ticket comes in, or if a new user signs up.

Syntax is as easy as this;

```
(new HueClient)->lights()->on(1)
```

Installation
------------

[](#installation)

Require the package first:

```
$ composer require cannonb4ll/laravel-philips-hue

```

Add this to the `config/services.php` file:

```
...

'philips-hue' => [
    'client_id' => env('PHILIPS_HUE_CLIENT_ID'),
    'client_secret' => env('PHILIPS_HUE_CLIENT_SECRET'),
    'app_id' => env('PHILIPS_HUE_APP_ID'),
    'device_id' => env('PHILIPS_HUE_DEVICE_ID'),
    'user' => env('PHILIPS_HUE_USERNAME')
]

...
```

Sign up (or login) to Philips Hue developer:

Next create a new Philips Hue App:

Fill in the fields accordingly to their form.

**Callback URL**: You will have to fill in a valid callback URL (certainly in testing enviroment, or you'd have to do this in production). This is because we will get the access and refresh tokens right away and store these in your application. In case if you are using valet, run `valet share` in your terminal to get an ngrok URL. Use this URL as callback in that case: `{NGROK_HOST}/hue/auth/receive` (Example: `http://aa0515c9.ngrok.io/hue/auth/receive`)

After that, note these variables:

- AppId
- ClientId
- ClientSecret

We still need 2 variables, the device ID and username we will be using for your bridge.

Visit this URL and note the device ID:  (or visit , you will see the bridge ID there too)

Fill in the details accordingly:

```
PHILIPS_HUE_CLIENT_ID=
PHILIPS_HUE_CLIENT_SECRET=
PHILIPS_HUE_APP_ID=
PHILIPS_HUE_DEVICE_ID=
PHILIPS_HUE_USERNAME=  false` to your `services.php` file:

```
'philips-hue' => [
    'client_id' => env('PHILIPS_HUE_CLIENT_ID'),
    'client_secret' => env('PHILIPS_HUE_CLIENT_SECRET'),
    'app_id' => env('PHILIPS_HUE_APP_ID'),
    'device_id' => env('PHILIPS_HUE_DEVICE_ID'),
    'user' => env('PHILIPS_HUE_USERNAME'),
    'routes' => false
]
```

All the access data is saved in the `storage/app/hue.json` file, this contains the keys to access Philips Hue API.

Methods
-------

[](#methods)

```
    $hue = new HueClient();

    $hue->groups()->all();
    $hue->lights()->all();
    $hue->lights()->get(1);
    $hue->lights()->on(1);
    $hue->lights()->off(1);
    $hue->lights()->customState(1, [
        "hue" => 25500,
        "bri" =>200,
        "alert" => 'select'
    ]);
```

TODO
----

[](#todo)

- Ability to use without physically pressing the link button
- Add scenes resource
- Add schedules resource
- Add sensors resource
- Add rules resource
- Add capabilities resource
- Add exceptions
- Add testing
- Fix refresh token refreshing automatically
- Update readme methods

Helpful links
-------------

[](#helpful-links)

*This is not an official package by Philips*

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 80% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~59 days

Recently: every ~93 days

Total

11

Last Release

2041d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bece5072b5ec7867d749e36c58d59abd3ac9994c59ebaf720cb5576b0e0e715f?d=identicon)[Cannonb4ll](/maintainers/Cannonb4ll)

---

Top Contributors

[![Cannonb4ll](https://avatars.githubusercontent.com/u/3110750?v=4)](https://github.com/Cannonb4ll "Cannonb4ll (44 commits)")[![allentje](https://avatars.githubusercontent.com/u/360137?v=4)](https://github.com/allentje "allentje (9 commits)")[![hermanbanken](https://avatars.githubusercontent.com/u/791189?v=4)](https://github.com/hermanbanken "hermanbanken (1 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (1 commits)")

---

Tags

hacktoberfesthacktoberfest2020laravellightsphilipsphilips-huephilips-hue-lightsphpphp7

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/cannonb4ll-laravel-philips-hue/health.svg)

```
[![Health](https://phpackages.com/badges/cannonb4ll-laravel-philips-hue/health.svg)](https://phpackages.com/packages/cannonb4ll-laravel-philips-hue)
```

###  Alternatives

[stevebauman/location

Retrieve a user's location by their IP Address

1.3k7.6M65](/packages/stevebauman-location)[nativephp/mobile

NativePHP for Mobile

82724.0k43](/packages/nativephp-mobile)[bensampo/laravel-embed

Painless responsive embeds for videos, slideshows and more.

142146.8k](/packages/bensampo-laravel-embed)[glhd/conveyor-belt

14797.0k](/packages/glhd-conveyor-belt)[pulkitjalan/ip-geolocation

IP Geolocation Wrapper with Laravel Support

89164.9k1](/packages/pulkitjalan-ip-geolocation)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
