Download the PHP package ozdemirburak/iris without Composer
On this page you can find all versions of the php package ozdemirburak/iris. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ozdemirburak/iris
More information about ozdemirburak/iris
Files in ozdemirburak/iris
Package iris
Short Description PHP library for color manipulation and conversion.
License MIT
Homepage https://github.com/ozdemirburak/iris
Informations about the package iris
Iris - PHP Color Library
PHP library for color manipulation and conversion.
For PHP 7.3 or PHP 7.4, use version ^2.5, and check the php-7 branch.
Install
Via Composer
Usage
Hex
Hexa (hex with alpha value)
HSL
HSLA
HSV
RGB
RGBA
CMYK
Via Factory
If you do not know what the color string will be (for example, you're getting it from a group of rows from a database), then you can try using Factory to instantiate an appropriate color class:
Color Cloning
You can clone a color object to make a copy and modify it as needed.
Color Manipulation
Saturation
Saturate or desaturate by a percent.
Lightness
Lighten, darken or brighten by a percent.
Spin
Spin by an angle [-360, 360]
Mix
Mix by a percent.
Tint
Mix color with white by a percent.
Shade
Mix color with black by a percent.
Fade
Set the absolute opacity of a color by a percent.
FadeIn
Increase the opacity of a color by a percent.
FadeOut
Decrease the opacity of a color by a percent.
Is light or dark
Determine if color is dark or light color.
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
Contributing
Please see CONTRIBUTING for details.
Credits
- Burak Özdemir
- All Contributors
License
The MIT License (MIT). Please see License File for more information.