Generate a random cute avatar using the GD Library
- PHP 8.0 or later
- PHP GD extension must be enabled
You can install the package via composer:
composer require nefydev/pet-avatar
To setup the config file:
php artisan vendor:publish --provider="Nefydev\PetAvatar\PetAvatarServiceProvider"
use Nefydev\PetAvatar\Facades\PetAvatar;
//...
// generate a cute random avatar
$avatar = PetAvatar::generate();
// shows the file name
echo $avatar;
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.