A simple fake image generator using the PHP GD library. Generates images on the fly by referencing a route.
You can install the package via composer:
composer require waynestate/image-faker
The package will automatically register itself if you are using laravel.
- GD library
- FreeType library (optional, will fall back to using imagestring over imagettftext)
<img src="/styleguide/image/100x100" alt="100 x 100">
<img src="/styleguide/image/1600x500?text=Hero%20Image" alt="Hero Image">
php artisan vendor:publish --tag=image-faker
Refer to the src/ImageFakeController.php
to see an example of how to interact with the image-faker
API.