ncoderslab/laravel-identicon

Laravel Identicon Package

dev-main 2022-07-03 14:16 UTC

This package is auto-updated.

Last update: 2024-04-30 00:27:27 UTC


README

Laravel Package Latest Version on Packagist Software License Total Downloads

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.