Skip to content

swichers/drupal-phpColors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Installation

  1. Install as usual, see http://drupal.org/node/70151 for further information.
  2. Rebuild and install libraries via Composer Manager
  3. Run drush composer-json-rebuild
  4. Run drush composer-manager update
  5. Run drush composer-manager install -o
  6. 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.

About

This module provides integration for the phpColors library.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published