I'm looking for a PHP library/function/class which can create Identicons.
how about this
it's how Scott did the identicons for Wordpress, you can download the code and see for yourself.
Hope it helps.