PHP code example of nefydev / pet-avatar
1. Go to this page and download the library: Download nefydev/pet-avatar library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
nefydev / pet-avatar example snippets
use Nefydev\PetAvatar\Facades\PetAvatar;
//...
// generate a cute random avatar
$avatar = PetAvatar::generate();
// shows the file name
echo $avatar;
bash
php artisan vendor:publish --provider="Nefydev\PetAvatar\PetAvatarServiceProvider"