petehouston/color-converter

Convert color between Hex and RGB.

Installs: 15

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/petehouston/color-converter

1.1.0 2016-10-31 15:42 UTC

This package is auto-updated.

Last update: 2025-09-28 00:56:11 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.