PHP code example of localheinz / faker-provider
1. Go to this page and download the library: Download localheinz/faker-provider library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
localheinz / faker-provider example snippets
use Faker\Factory;
$faker = Factory::create();
use Ergebnis\Faker\Provider;
use Faker\Generator;
/** @var Generator $faker */
$faker->addProvider(new Provider\AvatarUrlProvider($faker));
use Ergebnis\Faker\Provider;
use Faker\Generator;
/** @var Generator&Provider\AvatarUrlProvider $faker */
$url = $faker->adorableAvatarUrl();
$urlWithFixedIdentifier = $faker->adorableAvatarUrl('localheinz');
$urlWithFixedIdentifierAndSize = $faker->adorableAvatarUrl(
'localheinz',
150
);