PHP implementation of Robohash.org image generator

1.0.4 2021-03-14 12:42 UTC

This package is auto-updated.

Last update: 2024-05-14 20:03:05 UTC


PHP implementation of Robohash. Uses ImageMagick or GD as fallback (via intervention/image) to process the images. Only basic functionality, image caching and request processing is up to you.


composer require avram/robohash


Robohash::make() creates an instance of Robohash class and then calls generateImage() on it, which will then return an instance of Intervention\Image, which you can then use to further process the image or save()/encode() it.

require "vendor/autoload.php";

$robo = \Avram\Robohash\Robohash::make('Avram', 140, 'set5');

Credits to