phpmedia / faker-robohash-provider
This package is abandoned and no longer maintained.
No replacement package was suggested.
RoboHash provider for Faker
dev-master
2016-03-24 20:03 UTC
Requires
- fzaninotto/faker: ~1
Requires (Dev)
- phpunit/phpunit: ~4.4
This package is not auto-updated.
Last update: 2023-03-11 00:46:00 UTC
README
==================
robohash.org provider for Faker.
Install
Install RoboHashProvider via Composer.
$ composer require phpmedia/faker-robohash-provider
Howto use
$faker = Faker\Factory::create(); $faker->addProvider(new Phpmedia\RoboHashProvider($faker)); // normal roboter-avatar $avatarUrl = $faker->avatarUrl('100x100','dummy'); // http://robohash.org/dummy.png?size=100x100 $avatarUrl = $faker->avatarUrl('50x50','dummy2','gif'); // http://robohash.org/dummy2.gif?size=50x50 // roboter-avatar from set 2 with background 1 $avatarUrl = $faker->avatarUrl('100x100', 'dummy', 'gif', 'set2', 'bg1') // http://robohash.org/dummy.gif?size=100x100&set=set2&bgset=bg1