ozdemirburak/iris
Iris is a PHP 8.1+ color library for parsing, manipulating, and converting colors across Hex/Hexa, RGB/RGBA, HSL/HSLA, HSV, CMYK, and OKLCH. Provides format classes with channel accessors and easy toX() conversions.
Full Changelog: https://github.com/ozdemirburak/iris/compare/4.1.1...4.1.2
Fixes incorrect param type for PHPStan.
Added gradient() method for generating color scales (#51, #50)
Fixed OKLCH parsing, accepting both comma and space separated formats.
A major release bringing modern PHP support and a new color space. This version requires PHP 8.1+ and introduces OKLCH, a perceptually uniform color space, which is ideal for creating accessible color palettes and smooth gradients.
new Oklch('oklch(70%, 0.15, 150)')$hex->toOklch()^10.5|^11.0Hex, Hexa, RGB, RGBA, HSL, HSLA, HSV, CMYK, OKLCH
Added new Hexa class, fixes issue #28, thanks to @amnuts.
Changed HSL to HSV conversion method, fixes issue #27.
Added tint and shade methods.
Added isLight and isDark methods.
Improved code coverage.
How can I help you explore Laravel packages today?