Convert color between Hex and RGB.

1.1.0 2016-10-31 15:42 UTC

This package is auto-updated.

Last update: 2023-05-27 19:19:04 UTC


Build Status

The simple PHP library to convert between Hex and RGB.


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.