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    
Last Updated Ratings Unique User Downloads Download Rankings
2021-08-06 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: 55 All time: 10,015 This week: 51Up
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
Nominee
Vote
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: 11 packages by
Country: Turkey Turkey
Innovation award
Innovation award
Nominee: 7x

  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:55
This week:0
All time:10,015
This week:51Up
For more information send a message to info at phpclasses dot org.