PHP Classes

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)    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 115 This week: 2All time: 9,555 This week: 96Up
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: 20 packages by
Country: Turkey Turkey
Age: 21
All time rank: 276644 in Turkey Turkey
Week rank: 52 Up2 in Turkey Turkey Up
Innovation award
Innovation award
Nominee: 13x

  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:115
This week:2
All time:9,555
This week:96Up