ottaviano / faker-gravatar
Faker Gravatar image provider
Installs: 39 285
Dependents: 4
Suggesters: 0
Security: 0
Stars: 10
Watchers: 3
Forks: 3
Open Issues: 1
Requires
- php: ^7.1|^8.0
Requires (Dev)
- ext-curl: *
- fakerphp/faker: ^1.20
- phpunit/phpunit: ^9.5
README
It is Gravatar image provider for fzaninotto/Faker fakerphp/faker
Here are some examples of generated avatars:
Requirements
- PHP >= 7.1|8.0
Installation
composer require ottaviano/faker-gravatar --dev
Usage
<?php // ... $faker = Faker\Factory::create(); $faker->addProvider(new Ottaviano\Faker\Gravatar($faker)); $imageLocalPath = $faker->gravatar(); $imageContent = file_get_contents($imageLocalPath); // OR $imageUrl = $faker->gravatarUrl();