PHP code example of div-art / avatar

1. Go to this page and download the library: Download div-art/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/ */

    

div-art / avatar example snippets



$avatar = Avatar::make('John Doe');

$avatar->save();



$avatar = Avatar::make('John Doe')->size(100)->shape('square')->format('png')->save('avatarName');


'Avatar' => \DivArt\Avatar\Facades\Avatar::class,

php artisan vendor:publish --provider="DivArt\Avatar\AvatarServiceProvider"