kregel/identicon 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kregel/identicon

最新稳定版本:v1.0.3

Composer 安装命令:

composer require kregel/identicon

包简介

README 文档

README

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. :)

统计信息

  • 总下载量: 371
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-10-13