bilions / faker-images
Faker image provider for Laravel faker
Installs: 2 123
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 2
Open Issues: 0
Requires (Dev)
- fakerphp/faker: ^1.20
This package is auto-updated.
Last update: 2025-04-09 14:46:59 UTC
README
Faker image provider
- This package do not use curl to get image from third party web links.
- Images are generated using php image-gd and normally gd extension is already included when you install php.
Example Usage
$faker->addProvider(new FakerImageProvider($faker));
$image = $faker->image(null, 640, 480);
$filePath = Storage::disk('local')->putFileAs('seeder-images', new File($image), basename($image));