jejje/gravatar
最新稳定版本:1.0.0
Composer 安装命令:
composer require jejje/gravatar
包简介
A very simple package to get a Gravatar image or Profile. Made for education purposes for http://jejje.net
README 文档
README
This package is part of a simple tutorial from JejjE's network and and will give you a few simple methods you can call to get a users Gravatar image. Read the Tutorial here
Installation
First you'll need to pull in the package via composer
"require": { "jejje/gravatar": "dev-master" }
And in your app/config/app.php you'll need to add the Service Provider.
'providers' => [ 'Jejje\Gravatar\GravatarServiceProvider::class' ];
Usage
You can use it either within your Controller or your View like so.
public function index() { $email = 'jejje@jejje.net'; $size = 100; // Optional, you may set a default in the config file Gravatar::getImageWithLinkToProfile($email, $size); }
Other methods that are for your disposal are
Gravatar::getProfileUrl($email)Gravatar::getImageUrl($email, $size)Gravatar::getHash($email)
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-07-07