PHP Classes

PHP Color Class: Process and convert colors in different formats

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 116 All time: 9,555 This week: 55Up
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: 22
All time rank: 275244 in Turkey Turkey
Week rank: 195 Up3 in Turkey Turkey Up
Innovation award
Innovation award
Nominee: 13x

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

  Files folder image Files (11)  /  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 (11)  /  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 (11)  /  src  /  Enums  
File Role Description
  Plain text file Colors.php Class Class source

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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:116
This week:0
All time:9,555
This week:55Up