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

https://github.com/cebe/color-nick

A simple PHP lib that can color nick names to make them distinguishable in a chat room.
https://github.com/cebe/color-nick

Last synced: about 1 year ago
JSON representation

A simple PHP lib that can color nick names to make them distinguishable in a chat room.

Awesome Lists containing this project

README

          

color-nick
==========

A simple PHP lib that can color nick names to make them distinguishable in a chat room.
Each color is unique to the name so each name keeps its color regardless of the time, system
or whatever circumstances. This is done using a `sha1` hash on the name and taking the first 7
characters in it hex representation to calculate the color.

[![Latest Stable Version](https://poser.pugx.org/cebe/color-nick/v/stable.png)](https://packagist.org/packages/cebe/color-nick)
[![Total Downloads](https://poser.pugx.org/cebe/color-nick/downloads.png)](https://packagist.org/packages/cebe/color-nick)

Requirements
------------

PHP 5.4 or higher.

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

Using [Composer](http://getcomposer.org):

composer require cebe/color-nick

Usage
-----

```php