Download the PHP package adam-innes/alpha-hue without Composer
On this page you can find all versions of the php package adam-innes/alpha-hue. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download adam-innes/alpha-hue
More information about adam-innes/alpha-hue
Files in adam-innes/alpha-hue
Package alpha-hue
Short Description PHP SDK for interacting with the Phillips Hue Go Lighting System.
License MIT
Informations about the package alpha-hue
AlphaHue; Phillips Hue PHP SDK
Synopsis
This is a quick-to-implement library that connects your PHP project to the Phillips Hue lighting system. When I started writing an app for the Hue I found a need for an SDK that was complete and uncomplex with decent documentation. AlphaHue is an attempt to fill that need and speed up the process of getting started.
AlphaHue uses the PhpRestClient to interact with the Hue APIs.
Setup
Installation with Composer.
Clone the repository.
Install Composer in your project using cURL (command below) or download the composer.phar directly.
Let Composer install the project dependencies:
Once installed, include the autoloader in your script.
(or) add AlphaHue as a dependency to your Hue project using Composer.
Create a composer.json file in your project and add adam-innes/alpha-hue
as a required dependency.
Discovering Bridge Hostname and creating a Username
Phillips has a how-to on getting the internal IP address and creating a username
- Make sure the Bridge is connected to the network and working. Check that your smartphone can connect.
- Get the internal IP address from your router -or- use the broker service.
- Follow the directions on obtaining a username from the documentation.
Connecting from a remote server
If you're connecting to your bridge from an external server you may need to forward a port via your router. There are security risks associated with this that you should consider. If your project is not a personal one but an app or some software intended for use by other people with their light systems you should request the remote API access from Phillips directly.
- Step 1: Determine the internal IP address of your Bridge.
- Step 2: Forward an unused port to the internal IP address of the Bridge
- After forwarding (for example, port 24055, to the Bridge) your Bridge Hostname would be yourIpAddress:24055
Lights API
Turn lights on/off.
Get the power status of a light by ID.
Delete a light from the Bridge.
Attempt to match a light to a color by hex (not all colors can be created by the light).
Attempt to match a light to a color by RGB value (not all colors can be created by the light).
Get or set the state of a light.
Groups API
Get group IDs associated to the Bridge.
Create a group.
Set the attributes of a group.
Delete a group.
Set the state of a group.
Rules API
Get rules.
Delete a rule.
Sensors API
Schedule API
Get all schedules.