ncoderslab / laravel-identicon
Laravel Identicon Package
dev-main
2022-07-03 14:16 UTC
Requires
- php: ^7.2 || ^8.0
- illuminate/support: ^8.0 || ^9.0
- yzalis/identicon: ^2.0
This package is auto-updated.
Last update: 2025-03-29 00:50:02 UTC
README
This is the wraper package of Identicon Package for laravel projects.
Installation
$ composer require ncoderslab/laravel-identicon
Usage
This is the wrapper package of Identicon for laravel projects. All features available in Identicon are avialable in this package as well
Example Methods
Generate and Display an identicon image:
Identicon::displayImage('nCoders Lab');
Generate and get the image data
$imageData = Identicon::getImageData('nCoders Lab');
Generate and get the base 64 image uri ready for integrate into an HTML img tag. The below example is using blade templating
<img src="{{ Identicon::getImageDataUri('nCoders Lab') }}" alt="nCoders Lab Identicon" />
...
And all the other remaining methods from the main library.
License
The MIT License (MIT). Please see License File for more information.