PHPackages                             atmonshi/gmdcolors - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. atmonshi/gmdcolors

ActiveProject[Utility &amp; Helpers](/categories/utility)

atmonshi/gmdcolors
==================

Google Material Design hex colors for php.

v1.0.2(6y ago)2616MITPHPPHP &gt;=5.4CI failing

Since Sep 28Pushed 2y ago1 watchersCompare

[ Source](https://github.com/atmonshi/gmdcolors)[ Packagist](https://packagist.org/packages/atmonshi/gmdcolors)[ RSS](/packages/atmonshi-gmdcolors/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

GMDColors
=========

[](#gmdcolors)

[![Build Status](https://camo.githubusercontent.com/0c62071333e898532acbae02244187c6205bc8754012e1f79d9b26b6a796f99b/68747470733a2f2f7472617669732d63692e6f72672f61746d6f6e7368692f676d64636f6c6f72732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/atmonshi/gmdcolors)[![Maintainability](https://camo.githubusercontent.com/efbb9da5cda2a4e1e5de15b37f0906aea91eb4c4587000c7b11bbe6f8b749fda/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f39373832323564633738376137663664313634352f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/atmonshi/gmdcolors/maintainability)[![Latest Stable Version](https://camo.githubusercontent.com/d3b0de0db47c28b2091d4a93cfc2c55b5c00d56d43c88f864d1095b8b9955726/68747470733a2f2f706f7365722e707567782e6f72672f61746d6f6e7368692f676d64636f6c6f72732f762f737461626c653f666f726d61743d666c6174)](https://packagist.org/packages/atmonshi/gmdcolors)[![Total Downloads](https://camo.githubusercontent.com/5eb653c8ff0b1ec11cd8c8ccb57dd75959d651e2290973adc9b22d522fd89b30/68747470733a2f2f706f7365722e707567782e6f72672f61746d6f6e7368692f676d64636f6c6f72732f646f776e6c6f6164733f666f726d61743d666c6174)](https://packagist.org/packages/atmonshi/gmdcolors)[![License](https://camo.githubusercontent.com/f424e525a56cdd393cdaf7089312b178f9a4466837778252ff85589aaf2d8471/68747470733a2f2f706f7365722e707567782e6f72672f61746d6f6e7368692f676d64636f6c6f72732f6c6963656e73653f666f726d61743d666c6174)](https://packagist.org/packages/atmonshi/gmdcolors)

#### get Google Material Design hex colors for php

[](#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 :
-------

[](#usage-)

### get a single color :

[](#get-a-single-color-)

```
$getC = new getcolors;
$hex   = $getC->hex('Blue','100');
// return : string '#BBDEFB'

```

### get a a random colors :

[](#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)
*/

```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 95.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~477 days

Total

3

Last Release

2247d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1952412?v=4)[Lara Zeus](/maintainers/atmonshi)[@atmonshi](https://github.com/atmonshi)

---

Top Contributors

[![atmonshi](https://avatars.githubusercontent.com/u/1952412?v=4)](https://github.com/atmonshi "atmonshi (23 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

color-schemedesigngooglehexmaterialmaterial-designpalettephp-librarygooglehexmaterialcolors

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/atmonshi-gmdcolors/health.svg)

```
[![Health](https://phpackages.com/badges/atmonshi-gmdcolors/health.svg)](https://phpackages.com/packages/atmonshi-gmdcolors)
```

###  Alternatives

[paragonie/constant_time_encoding

Constant-time Implementations of RFC 4648 Encoding (Base-64, Base-32, Base-16)

908363.2M191](/packages/paragonie-constant-time-encoding)[spatie/laravel-analytics

A Laravel package to retrieve Google Analytics data.

3.3k6.1M68](/packages/spatie-laravel-analytics)[spatie/laravel-google-calendar

Manage events on a Google Calendar

1.4k1.8M21](/packages/spatie-laravel-google-calendar)[emcconville/google-map-polyline-encoding-tool

A simple class to handle polyline-encoding for Google Maps

1582.4M2](/packages/emcconville-google-map-polyline-encoding-tool)[mervick/material-design-icons

Google Material Design Icons For Using With Bootstrap

9894.8k7](/packages/mervick-material-design-icons)[ozdemirburak/iris

PHP library for color manipulation and conversion.

1201.9M23](/packages/ozdemirburak-iris)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
