Avatar Generator package for Laravel 5.5
To install, run the following in your project directory:
$ composer require div-art/avatarThen in config/app.php add the following to the providers array:
\DivArt\Avatar\AvatarServiceProvider::class,
Also in config/app.php, add the Facade class to the aliases array:
'Avatar' => \DivArt\Avatar\Facades\Avatar::class,
To publish Avatar's configuration file, run the following vendor:publish command:
php artisan vendor:publish --provider="DivArt\Avatar\AvatarServiceProvider"
This will create a avatar.php in your config directory.
Be sure to include the namespace for the class wherever you plan to use this library
use DivArt\Avatar\Facades\Avatar;
Add your fonts to public/fonts.
$avatar = Avatar::make('John Doe');
$avatar->save();$avatar = Avatar::make('John Doe')->size(100)->shape('square')->format('png')->save('avatarName');The MIT License (MIT). Please see License File for more information.