Package Data | |
---|---|
Maintainer Username: | austinkregel |
Maintainer Contact: | me@austinkregel.com (Austin Kregel) |
Package Create Date: | 2015-10-13 |
Package Last Update: | 2016-10-10 |
Language: | PHP |
License: | Unknown |
Last Refreshed: | 2024-11-20 03:01:34 |
Package Statistics | |
---|---|
Total Downloads: | 370 |
Monthly Downloads: | 2 |
Daily Downloads: | 1 |
Total Stars: | 4 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
This is a Laravel wrapper for the identicon package written by yzalis. This package comes equipped a custom
identicons named route for easy profile image redering. The custom route can be accessed using a named route or by going to
http://YOURDOMAIN.TLD/identicon/d/STRING
where the string is whatever you want...
route('identicon::main', [
'YOUR STRING HERE',
'SIZE (optional)',
'TEXT_COLOR (optional)',
'BACKGROUND_COLOR (optional)'
]);
composer require kregel/identicon
or add "kregel/identicon":"dev-master"
to your composer.json file, just be sure to use composer update
with that statement, or if you haven't build your dependancies use composer install
instead.
Register the service provider with your config/app.php
file
'providers' => [
...,
Kregel\Identicon\IdenticonServiceProvider::class,
...,
]
config/app.php
file'aliases' => [
...,
'Identicon' => Kregel\Identicon\Facades\Identicon::class,
...,
]
I use this method (similar to Gravatar)
<img src="{{ route('identicon::main', [
md5($user->email),
'200'
]) }}">
Email me (my email is on my github page), or you can drop an issue. :)