atmonshi / gmdcolors
Google Material Design hex colors for php.
Fund package maintenance!
atmonshi
Installs: 364
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=5.4
Requires (Dev)
- phpunit/phpunit: 5.2.*
This package is auto-updated.
Last update: 2024-12-08 00:46:20 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)
*/