PackageTrack
Sign in Get early access

ozdemirburak/iris

PHP library for color manipulation and conversion.

4.1.2 2.0M downloads/mo #3452 most downloaded on Packagist ozdemirburak/iris

What this package is like to depend on

Last release 20 days ago

03 Aug 2026

Release timing varies

gaps range from 2 weeks to 2.8 years

Some releases are documented

notes for 10 of 21 stable releases

Nothing withdrawn

no release was ever pulled

9 years old

21 releases · first in 2017

5 releases in the last 12 months

see the full history below

Release timeline

21 releases · May 2017 to Aug 2026
2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 21
  1. 4.1.2 03 Aug 2026
    Release notes

    What's Changed

    • Clamp negative alpha values in AlphaTrait by @gaoflow in #53

    New Contributors

    Full Changelog: 4.1.1...4.1.2

    Open source →
  2. 4.1.1 07 Jan 2026
    Release notes

    Fixes incorrect param type for PHPStan.

    Open source →
  3. 4.1.0 05 Dec 2025
    Release notes

    Added gradient() method for generating color scales (#51, #50)

    • Supports two-color gradients: $colorA->gradient($colorB, $steps)
    • Supports multi-color gradients with pivots: $colorA->gradient([$colorB, $colorC], $steps)
    • Works with all color types (Hex, RGB, HSL, HSV, CMYK, OKLCH, RGBA, HSLA)
    • Returns array of colors matching the starting color type
    • Added comprehensive tests for all color types and edge cases
    Open source →
  4. 4.0.1 02 Dec 2025
    Release notes

    Fixed OKLCH parsing, accepting both comma and space separated formats.

    • Support CSS Color Level 4 space-separated syntax: oklch(40.1% 0.123 21.57)
    • Continue supporting comma-separated syntax: oklch(70%, 0.15, 150)
    • Alpha values in input are parsed but ignored (e.g., oklch(50% 0.1 180 / .5))
    Open source →
  5. 4.0.0 02 Dec 2025
    Release notes

    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.

    Breaking Changes

    • Minimum PHP version is now 8.1
    • Removed Travis CI configuration
    • Removed EditorConfig and PHP CodeSniffer

    New Features

    • OKLCH Color Space: Added full support for the perceptually uniform OKLCH color format
    • Parse OKLCH strings: new Oklch('oklch(70%, 0.15, 150)')
    • Convert any color to OKLCH: $hex->toOklch()
    • Convert OKLCH to all other formats (Hex, RGB, HSL, etc.)
    • Factory support for OKLCH strings

    Bug Fixes

    • Fixed RGBA to HEXA conversion preserving original RGB values (#37)
    • Fixed HSLA to HEXA conversion preserving original alpha value (#48)

    Improvements

    • Updated PHPUnit to ^10.5|^11.0
    • Converted all test annotations to PHP 8 attributes

    Currently Supported Formats

    Hex, Hexa, RGB, RGBA, HSL, HSLA, HSV, CMYK, OKLCH

    Open source →
  6. 3.1.1 22 Feb 2023
    Release notes
    • Using float instead of int to avoid warnings @jaulz
    Open source →
  7. 3.1.0 08 Feb 2023
    Release notes
    • Use float instead of int to avoid warnings @jaulz
    • Fixes for issues #39
    Open source →
  8. 3.0.0 08 Feb 2022
    Release notes
    • Remove PHP 7 support, will only support PHP 8
    • Added type hinting and return type declarations
    • Made BaseColor::back() and BaseColor::getColorModelName() public @rv1971
    • Use non-locale aware output for the alpha value @Jako
    • Updated .gitignore, and some code refactoring @kudashevs
    Open source →
  9. 2.5.0 13 Feb 2022
    Release notes
    • Made BaseColor::back() and BaseColor::getColorModelName() public, added mixInHsv() @rv1971
    • Use non-locale aware output for the alpha value @Jako
    • Updated .gitignore, and some code refactoring @kudashevs
    Open source →
  10. 2.4.0 05 Oct 2021
    Release notes

    Added new Hexa class, fixes issue #28, thanks to @amnuts.

    Open source →
  11. 2.3.1 30 Jan 2021

    Nothing published for this version

  12. 2.3.0 06 Dec 2020

    Nothing published for this version

  13. 2.2.0 11 Oct 2020

    Nothing published for this version

  14. 2.1.0 14 Apr 2020

    Nothing published for this version

  15. 2.0.1 19 Oct 2019

    Nothing published for this version

  16. 2.0.0 12 Oct 2019

    Nothing published for this version

  17. 1.2.1 07 Oct 2018

    Nothing published for this version

  18. 1.2.0 08 Apr 2018

    Nothing published for this version

  19. 1.1.1 03 Oct 2017

    Nothing published for this version

  20. 1.1.0 03 Oct 2017

    Nothing published for this version

  21. 1.0.0 30 May 2017

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive