lshorz/lavatar
Lavtar
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');
});
Related Packages
saade/facehash
Deterministic avatar faces from any string. Lightweight, pure SVG output. Larave...
17,100
7
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 1.2 | >=7.0 | MIT | ||
| 1.1 | >=7.0 | ^5.5 | MIT | |
| 1.0 | >=5.6 | ~5.0 | MIT |