https://github.com/atmonshi/gmdcolors
Google Material Design hex colors for php
https://github.com/atmonshi/gmdcolors
color-scheme design google hex material material-design palette php-library
Last synced: about 1 year ago
JSON representation
Google Material Design hex colors for php
- Host: GitHub
- URL: https://github.com/atmonshi/gmdcolors
- Owner: atmonshi
- License: mit
- Created: 2017-09-28T18:26:30.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-02-07T23:08:42.000Z (over 2 years ago)
- Last Synced: 2025-03-29T16:11:53.264Z (about 1 year ago)
- Topics: color-scheme, design, google, hex, material, material-design, palette, php-library
- Language: PHP
- Size: 34.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# GMDColors
[](https://travis-ci.org/atmonshi/gmdcolors)
[](https://codeclimate.com/github/atmonshi/gmdcolors/maintainability)
[](https://packagist.org/packages/atmonshi/gmdcolors)
[](https://packagist.org/packages/atmonshi/gmdcolors)
[](https://packagist.org/packages/atmonshi/gmdcolors)
#### get Google Material Design hex colors for php
see the Color palette in [google material](https://material.io/guidelines/style/color.html#color-color-tool)
## 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)
*/
```