waynestate / image-faker
Fake image generator using the PHP GD library. Accessible through a Laravel route.
Installs: 21 620
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 4
Forks: 1
Open Issues: 0
Requires
- php: >=7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.2
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2024-11-07 19:59:23 UTC
README
A simple fake image generator using the PHP GD library. Generates images on the fly by referencing a route.
Installation
You can install the package via composer:
composer require waynestate/image-faker
The package will automatically register itself if you are using laravel.
Requirements
- GD library
- FreeType library (optional, will fall back to using imagestring over imagettftext)
Demo
<img src="/styleguide/image/100x100" alt="100 x 100">
<img src="/styleguide/image/1600x500?text=Hero%20Image" alt="Hero Image">
Publishing the config
php artisan vendor:publish --tag=image-faker
Not using laravel?
Refer to the src/ImageFakeController.php
to see an example of how to interact with the image-faker
API.