kregel/identicon

371 4
Install
composer require kregel/identicon
Latest Version:v1.0.3
PHP:>=5.4.0
Last Updated:Oct 10, 2016
Links: GitHub  ·  Packagist
Maintainer: austinkregel

downloads

What is it?

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)'
]);

How to set up.

  1. 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.

  2. Register the service provider with your config/app.php file

'providers' => [
  ...,
  Kregel\Identicon\IdenticonServiceProvider::class,
  ...,
]
  1. Add the alias to your config/app.php file
'aliases' => [
  ...,
  'Identicon' => Kregel\Identicon\Facades\Identicon::class,
  ...,
]

Use it!

I use this method (similar to Gravatar)

<img src="{{ route('identicon::main', [
  md5($user->email), 
  '200' 
]) }}">

Questions?

Email me (my email is on my github page), or you can drop an issue. :)

Related Packages

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
rdpascua/laravel-identicon

Identicon wrapper for Laravel

115 3
pespantelis/gravatar

Gravatar url builder

197 5
lshorz/lavatar

Create awesome unique avatar for Laravel5.4

108 5

Version History

Version Released PHP Laravel License
v1.0.3 >=5.4.0 >=5.0
1.0.2 >=5.4.0 5.1.*|5.2.*
v1.0.1 >=5.4.0 5.1.*
v1.0 >=5.4.0 5.1.*