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.
- Host: GitHub
- URL: https://github.com/cebe/color-nick
- Owner: cebe
- License: mit
- Created: 2014-10-26T23:35:48.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-27T06:26:59.000Z (over 11 years ago)
- Last Synced: 2024-10-11T21:55:49.888Z (over 1 year ago)
- Language: PHP
- Size: 196 KB
- Stars: 8
- Watchers: 4
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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.
[](https://packagist.org/packages/cebe/color-nick)
[](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