PHPackages                             cebe/color-nick - 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. cebe/color-nick

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

cebe/color-nick
===============

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

1.0.0(11y ago)839[1 PRs](https://github.com/cebe/color-nick/pulls)GPL-3.0+PHPPHP &gt;=5.4.0

Since Oct 27Pushed 11y ago2 watchersCompare

[ Source](https://github.com/cebe/color-nick)[ Packagist](https://packagist.org/packages/cebe/color-nick)[ Docs](https://github.com/cebe/color-nick#readme)[ RSS](/packages/cebe-color-nick/feed)WikiDiscussions master Synced 1mo ago

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

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

[](#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://camo.githubusercontent.com/8cfda590d32550f2d611f1f13cd84faccdade40af0ca4ef8a911d2aa92e978e2/68747470733a2f2f706f7365722e707567782e6f72672f636562652f636f6c6f722d6e69636b2f762f737461626c652e706e67)](https://packagist.org/packages/cebe/color-nick)[![Total Downloads](https://camo.githubusercontent.com/a63652e348f6c4a241bf9b779d3af766868897f484e16544f23ac2c80e54cd8f/68747470733a2f2f706f7365722e707567782e6f72672f636562652f636f6c6f722d6e69636b2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/cebe/color-nick)

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

[](#requirements)

PHP 5.4 or higher.

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

[](#installation)

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

```
composer require cebe/color-nick

```

Usage
-----

[](#usage)

```
