Introduction
This module provides composer integration for the phpColors library. The phpColors library provides an easy-to-use PHP class for dealing with color manipulation.
Requirements
- Composer Manager
- phpColors (installed via Composer Manager)
Installation
- Install as usual, see http://drupal.org/node/70151 for further information.
- Rebuild and install libraries via Composer Manager
- Run
drush composer-json-rebuild
- Run
drush composer-manager update
- Run
drush composer-manager install -o
- See the composer manager documentation for more information.
Usage
<?php
use Mexitek\PHPColors\Color;
$my_blue = new Color("#336699");
echo $my_blue->darken();
?>
or
<?php
$my_blue = phpcolors_get_color('#336699');
echo $my_blue->darken();
?>
See http://mexitek.github.io/phpColors/ for more in depth documentation.