PHPackages                             light/wordcolor - 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. light/wordcolor

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

light/wordcolor
===============

generate color from the word.

1.0.0(10y ago)138MITPHPPHP &gt;=5.4.0

Since Mar 21Pushed 9y ago1 watchersCompare

[ Source](https://github.com/lichunqiang/wordcolor.php)[ Packagist](https://packagist.org/packages/light/wordcolor)[ Docs](https://github.com/light/wordcolor)[ RSS](/packages/light-wordcolor/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

wordcolor
=========

[](#wordcolor)

[![Build Status](https://camo.githubusercontent.com/e9386e58c4410cb761946ccc9945b48c693ad171598d74daeded2503fd04fc39/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c696368756e7169616e672f776f7264636f6c6f722e7068702e7376673f7374796c653d666c61742d737175617265)](http://travis-ci.org/lichunqiang/wordcolor.php)[![version](https://camo.githubusercontent.com/2ca1e81a8ea2348af8e79f35cbf15d4fac5e7e58b9ab5c23a86d0c063d92b91f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c696768742f776f7264636f6c6f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/light/wordcolor)[![Download](https://camo.githubusercontent.com/f77631563d5029865ac87870f06778a557cb1c35c1ba89cdab084ae1521210af/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c696768742f776f7264636f6c6f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/light/wordcolor)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/c61f58a37bad05242028aacb280d410b50b9458a58ea4dccd9b64c2e0bfa86b7/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6c696368756e7169616e672f776f7264636f6c6f722e7068702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/lichunqiang/wordcolor.php)[![Code Coverage](https://camo.githubusercontent.com/49c43cafb2af6bb4998087f7c8a59ad4d774dfd5b20356dd89186d263133db09/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6c696368756e7169616e672f776f7264636f6c6f722e7068702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/lichunqiang/wordcolor.php)[![Contact](https://camo.githubusercontent.com/75bf8da95e146782f05a9a4c946f35fed67adbea1b2bf3c15eef0f69be64c8d8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f776569626f2d406368756e7169616e672d626c75652e7376673f7374796c653d666c61742d737175617265)](http://weibo.com/chunqiang)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist light/wordcolor "~1.0.0"

```

or add

```
"light/wordcolor": "~1.0.0"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

```
echo WordColor::trans('word'); // rgb(188,174,18)

```

Tests
-----

[](#tests)

```
$ composer test

```

Change Log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Related
-------

[](#related)

- [word-color](https://github.com/afc163/word-color) - javascript version, which is the original fork
- [wordcolor.go](https://github.com/lichunqiang/wordcolor.go) - GoLang version.

License
-------

[](#license)

[![MIT](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3706d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ead2ef2c9862aa3d75a97de86af1e3cfa919886e8981bf0808cddd93f563777?d=identicon)[light](/maintainers/light)

---

Top Contributors

[![lichunqiang](https://avatars.githubusercontent.com/u/2433916?v=4)](https://github.com/lichunqiang "lichunqiang (3 commits)")

---

Tags

colorrgbwords

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/light-wordcolor/health.svg)

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

###  Alternatives

[doctrine/inflector

PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of words.

11.4k855.8M711](/packages/doctrine-inflector)[spatie/color

A little library to handle color conversions

38018.9M28](/packages/spatie-color)[mexitek/phpcolors

A series of methods that let you manipulate colors. Just incase you ever need different shades of one color on the fly.

5003.6M18](/packages/mexitek-phpcolors)[kwn/number-to-words

Multi language standalone PHP number to words converter. Fully tested, open for extensions and new languages.

4235.0M21](/packages/kwn-number-to-words)[ssnepenthe/color-utils

A PHP library for performing SASS-like color manipulations.

631.1M10](/packages/ssnepenthe-color-utils)[tecnickcom/tc-lib-color

PHP library to manipulate various color representations

247.2M9](/packages/tecnickcom-tc-lib-color)

PHPackages © 2026

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