CodeExplorer imageGenerator example
if (\
count($images)) { return $images[array_rand($images)]->
getPathname();
} /** @var string $text */
$text =
$context->
getFaker()->
words(1, true
);
$provider =
new ImagesGeneratorProvider(new Generator());
return $provider->
imageGenerator( null,
$context->
getFaker()->
numberBetween(600, 800
),
$context->
getFaker()->
numberBetween(400, 600
),
'jpg',
true,
$text,
'#d8dde6',
'#333333'
);
}