petehouston/color-converter

Convert color between Hex and RGB.

1.1.0 2016-10-31 15:42 UTC

This package is auto-updated.

Last update: 2024-11-27 23:04:35 UTC


README

Build Status

The simple PHP library to convert between Hex and RGB.

Usage

One single class ColorConverter with two functions:

hex2rgb(string $hex)

return an array with 3 values of Reg, Green and Blue.

rgb2hex(int $red, int $green, int $blue)

return a hex string respresentation.

Added build with Travis CI.