PHPackages                             tyler-king/backlight - 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. [Image &amp; Media](/categories/media)
4. /
5. tyler-king/backlight

ActiveLibrary[Image &amp; Media](/categories/media)

tyler-king/backlight
====================

A pointless PHP library for getting the mean and glow background colors of an image or icon.

3171PHP

Since Dec 9Pushed 13y agoCompare

[ Source](https://github.com/ohmybrew/backlight)[ Packagist](https://packagist.org/packages/tyler-king/backlight)[ RSS](/packages/tyler-king-backlight/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Backlight
=========

[](#backlight)

Backlight is a pointless script inspired by the Ubuntu Unity Launcher. It will take an image/icon, and find it's mean background color as well as it's glow color. It will return an object with values in both RGB and HEX format for use.

Fetch
-----

[](#fetch)

The recommended way to install Backlight is [through composer](http://packagist.org).

Just create a composer.json file for your project:

```
{
    "minimum-stability" : "dev",
    "require": {
        "tyler-king/backlight": "dev-master"
    }
}
```

And run these two commands to install it:

```
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar install

```

Now you can add the autoloader, and you will have access to the library:

```
