taskforcedev/gravatar 问题修复 & 功能扩展

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

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

taskforcedev/gravatar

最新稳定版本:v1.0.0

Composer 安装命令:

composer create-project taskforcedev/gravatar

包简介

Gravatar Module.

README 文档

README

A simple gravatar class.

Installation

Step 1: Add the following package to your composer.json.

require {
  "taskforcedev/gravatar": "1.0.*",
}

Step 2: Run composer update.

composer update

Usage

Using the class is as very straightforward.

Example

use Taskforcedev\Gravatar;

$gravatar = new Gravatar();

$avatar = $gravatar->getAvatar($user, $options);

$user can be any of the following:

  • An array with a key containing the email address.
  • A Laravel User object.
  • A class with a getEmail() method or email property.

$options is optional

  • $options['secure'] - By default this is true for https but can also be set to false for http.
  • $options['size'] - Defaults to 100 (px), accepts any int value.

Exceptions

If for any reason the class fails to retrieve a gravatar false will be returned.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2015-08-18