PHP function to generate a color from a text string

Written by Kevin on January 13, 2012

So I was in need of a way to generate a unique color based on a string input. I wanted to be able to define a minimum brightness and how unique each color should be. After a little googleing, I did not find anything I liked, so I wrote my own real quick. Hopefully someone else can find a use for this function as well