lshorz / lavatar
Create awesome unique avatar for Laravel
1.2
2019-10-10 09:02 UTC
Requires
- php: >=7.0
- yzalis/identicon: ~1.2
This package is auto-updated.
Last update: 2024-10-29 04:58:54 UTC
README
Create awesome unique avatar for Laravel5.4
perview
Installation
$ composer require lshorz/lavatar
'providers' => [ ... Lshorz\Lavatar\LavatarServiceProvider::class, ],
'aliases' => [ ... 'Lavatar' => Lshorz\Lavatar\Facades\Lavatar::class, ],
Example
Display image
Lavatar::displayImage('user');
or use helper
lavatar_img('Hello');
Get the base64 uri
<img src="{{ Lavatar::getAvatarBase64('user', 120, null, 'FFFFFF') }}" />
or
Route::get('/test', function(){ return lavatar_base64('hello'); });