Start with PHPColor
Install PHPColor and take the six-step tour, from creating your first color to composing palettes and gradients.
-
→
Install PHPColor
Install PHPColor and verify that Composer loads it correctly. -
→
Create colors
Construct colors from channel values or names, and parse supported concrete CSS colors into the same objects. -
→
The color object
One interface for every space: properties, operations, conversion. -
→
Compare colors
Measure perceptual distance, check WCAG contrast, test equality. -
→
Compose
Expand a single color into palettes, harmonies, and gradients. -
→
Ship CSS
Emit modern CSS with an sRGB fallback, derive a dark theme, and build contextual expressions for the browser.