Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lichunqiang/wordcolor.php

Get the color from the words
https://github.com/lichunqiang/wordcolor.php

Last synced: 3 days ago
JSON representation

Get the color from the words

Awesome Lists containing this project

README

        

wordcolor
========
[![Build Status](https://img.shields.io/travis/lichunqiang/wordcolor.php.svg?style=flat-square)](http://travis-ci.org/lichunqiang/wordcolor.php)
[![version](https://img.shields.io/packagist/v/light/wordcolor.svg?style=flat-square)](https://packagist.org/packages/light/wordcolor)
[![Download](https://img.shields.io/packagist/dt/light/wordcolor.svg?style=flat-square)](https://packagist.org/packages/light/wordcolor)
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/lichunqiang/wordcolor.php.svg?style=flat-square)](https://scrutinizer-ci.com/g/lichunqiang/wordcolor.php)
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/lichunqiang/wordcolor.php.svg?style=flat-square)](https://scrutinizer-ci.com/g/lichunqiang/wordcolor.php)
[![Contact](https://img.shields.io/badge/[email protected]?style=flat-square)](http://weibo.com/chunqiang)

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
-----

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

Tests
-----

```
$ composer test
```

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

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

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
-------
[![MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE)