secit-pl/text-to-color

Make a RGB color from a given string

1.0.1 2019-03-17 15:12 UTC

This package is not auto-updated.

Last update: 2024-11-12 02:14:17 UTC


README

This library allows to create RGB color from a given string. The usage is as simple as possible (one line). The returned value for each string will be the same for each execution so it's ideal for generating dedicated user color from his/her name/username/email etc.

Installation

From the command line run

$ composer require secit-pl/text-to-color

Usage

<?php

use SecIT\TextToColor;

echo TextToColor::toRGB('some text');

Example outputs