rdpascua/laravel-identicon
Identicon Wrapper for Laravel
Generate awesome avatar placeholders using identicon.
Installation
composer require rdpascua/laravel-identicon
Add this to your service provider
Rdpascua\Identicon\IdenticonServiceProvider::class,
And add this to your facades
'aliases' => [
'Identicon' => Rdpascua\Identicon\Facades\Identicon::class,
]
Usage
Identicon::getImageDataUri($string, $size = 64, $color = null)
Returns a base64 image.
<!-- Base64 URI image -->
<img src="{{ Identicon::getImageDataUri('baz') }}">
<!-- Explicitly specify the size and color -->
<img src="{{ Identicon::getImageDataUri('foo', 256, 'B4D455') }}">
Identicon::image($string, $size = 64, $color = null)
Returns a base64 image wrapped in <img> tag.
<!-- Show image -->
{{ Identicon::image('baz') }}
Identicon::getImageData($string, $size = 64, $color = null)
Identicon::displayImage($string, $size = 64, $color = null)
Credits
License
This wrapper is licensed under the MIT license
Related Packages
saade/facehash
Deterministic avatar faces from any string. Lightweight, pure SVG output. Larave...
14,316
7
irazasyed/laravel-identicon
Laravel Identicon Package - Extends Identicon Library and Adds Support for Seaml...
29,759
23
arcanedev/gravatar
A library providing easy gravatar integration/generation (Laravel supported).
86,923
17
laravolt/avatar
Turn name, email, and any other string into initial-based avatar or gravatar.
6,308,294
1,983
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 1.0.0 | >=5.6.4 | >=4.1 <6.0 | MIT |