atmonshi / gmdcolors
Google Material Design hex colors for php.
                                    Fund package maintenance!
                                                                            
                                                                                                                                        atmonshi
                                                                                    
                                                                
Installs: 566
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
pkg:composer/atmonshi/gmdcolors
Requires
- php: >=5.4
 
Requires (Dev)
- phpunit/phpunit: 5.2.*
 
This package is auto-updated.
Last update: 2025-10-08 02:38:26 UTC
README
get Google Material Design hex colors for php
see the Color palette in google material
Usage :
get a single color :
$getC = new getcolors;
$hex   = $getC->hex('Blue','100');
// return : string '#BBDEFB'
get a a random colors :
$getC = new getcolors;
$rand = $getC->rand(3);
/*return : array (size=3)
0 => string '#BA68C8' (length=7)
1 => string '#FFF176' (length=7)
2 => string '#64B5F6' (length=7)
*/