2017 © Pedro Peláez
 

library identicon

image

kregel/identicon

  • Monday, October 10, 2016
  • by austinkregel
  • Repository
  • 1 Watchers
  • 4 Stars
  • 354 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 1 % Grown

The README.md

downloads, (*1)

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..., (*2)

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., (*3)

  2. Register the service provider with your config/app.php file, (*4)

    'providers' => [
    ...,
    Kregel\Identicon\IdenticonServiceProvider::class,
    ...,
    ]
    
  3. Add the alias to your config/app.php file, (*5)

    'aliases' => [
    ...,
    'Identicon' => Kregel\Identicon\Facades\Identicon::class,
    ...,
    ]
    

Use it!

I use this method (similar to Gravatar) php <img src="{{ route('identicon::main', [ md5($user->email), '200' ]) }}">, (*6)

Questions?

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

The Versions

10/10 2016

dev-master

9999999-dev

  Sources   Download

The Requires

 

laravel identicon identicons

10/10 2016

v1.0.3

1.0.3.0

  Sources   Download

The Requires

 

laravel identicon identicons

19/05 2016

dev-analysis-8wOWw4

dev-analysis-8wOWw4

  Sources   Download

The Requires

 

laravel identicon identicons

22/03 2016

1.0.2

1.0.2.0

  Sources   Download

The Requires

 

laravel identicon identicons

15/10 2015
14/10 2015