Skip to content

avramovic/php-robohash

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-robohash

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.

Install

composer require avram/robohash

Usage

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.

<?php
require "vendor/autoload.php";

$robo = \Avram\Robohash\Robohash::make('Avram', 140, 'set5');
$robo->save('robohash.png');

Credits to

About

PHP implementation of Robohash

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%