PHPackages                             freshbrewedweb/colored-words - 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. freshbrewedweb/colored-words

ActiveLibrary

freshbrewedweb/colored-words
============================

PHP utility to convert colors to their closest CSS color name.

333PHP

Since May 26Pushed 8y ago1 watchersCompare

[ Source](https://github.com/greghunt/ColoredWords)[ Packagist](https://packagist.org/packages/freshbrewedweb/colored-words)[ RSS](/packages/freshbrewedweb-colored-words/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

ColoredWords
============

[](#coloredwords)

PHP utility to convert colors to their closest CSS color name.

Usage
-----

[](#usage)

```
$word = "Blue-pastel";
$color = new ColoredWords( $word );

echo $color->convert()->name();
```

**Results** in `lightblue`

[Demo](https://demo.freshbrewedweb.com/ColoredWords/tests/index.php?word=Blue-pastel)
-------------------------------------------------------------------------------------

[](#demo)

[View the demo](https://demo.freshbrewedweb.com/ColoredWords/tests/index.php?word=Blue-pastel)

API
---

[](#api)

- `get` gets the resulting matches.
- `exactMatch` matches exact names.
- `match` loosely matches names.
- `sortByRelevance` adds a score to matches and sorts the array.
- `convert` sets the best match by relevance.
- `name` gets the converted name;
- `hex` gets the hex code of the converted name.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/de81fafa7b25ffcbdfd3aa7d78a7a3c05a764a8e15a73b6f37ea7cfa4348abd2?d=identicon)[greghunt](/maintainers/greghunt)

---

Top Contributors

[![greghunt](https://avatars.githubusercontent.com/u/1238407?v=4)](https://github.com/greghunt "greghunt (28 commits)")

### Embed Badge

![Health badge](/badges/freshbrewedweb-colored-words/health.svg)

```
[![Health](https://phpackages.com/badges/freshbrewedweb-colored-words/health.svg)](https://phpackages.com/packages/freshbrewedweb-colored-words)
```

PHPackages © 2026

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