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: 2022-05-27 17:11:51 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.