PHP Color Class: Process and convert colors in different formats

Recommend this page to a friend!
  Info   View files View files (11)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2021-08-06 (2 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 95 This week: 1All time: 9,585 This week: 182Up
Version License PHP version Categories
color-processing 1.0.0MIT/X Consortium ...5PHP 5, Graphics, Conversion
Description Author

This package can process and convert colors in different formats.

It can take strings that represent colors and different formats and process them for instance to find contrasting colors.

The package can convert color values that can be represented in different formats like HSL, HSLA, hexadecimal, RGBA and RGB.

It also provides a trait to perform color value format conversion operations from inside any other class.

Innovation Award
PHP Programming Innovation award nominee
August 2021
Number 7
Colors can have a significant role when used in applications presented to their users.

Using the right colors may help users to make the best use of applications, not only for aesthetic purposes but also to draw attention to important messages that appear.

The right colors can make important text contrast well when displayed in the background with the right color.

This package provides means to manipulate color values in a useful way. It provides a trait, so its functionality is available from inside any other class.

Manuel Lemos
Picture of Isa Eken
  Performance   Level  
Name: Isa Eken <contact>
Classes: 13 packages by
Country: Turkey Turkey
Age: 19
All time rank: 338354 in Turkey Turkey
Week rank: 185 Up4 in Turkey Turkey Up
Innovation award
Innovation award
Nominee: 8x

  Files folder image Files  
File Role Description
Files folder imagesrc (3 files, 3 directories)
Plain text file composer.json Data Auxiliary data

  Files folder image Files  /  src  
File Role Description
Files folder imageColor (5 files)
Files folder imageEnums (1 file)
Files folder imageTraits (1 file)
  Plain text file ColorInterface.php Class Class source
  Plain text file Contrast.php Class Class source
  Plain text file Convert.php Class Class source

  Files folder image Files  /  src  /  Color  
File Role Description
  Plain text file Hex.php Class Class source
  Plain text file Hsl.php Class Class source
  Plain text file Hsla.php Class Class source
  Plain text file Rgb.php Class Class source
  Plain text file Rgba.php Class Class source

  Files folder image Files  /  src  /  Enums  
File Role Description
  Plain text file Colors.php Class Class source

  Files folder image Files  /  src  /  Traits  
File Role Description
  Plain text file Convertable.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:95
This week:1
All time:9,585
This week:182Up
For more information send a message to info at phpclasses dot org.