承接 jejje/gravatar 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

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

Build Status Total Downloads Latest Stable Version Latest Unstable Version License

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-07-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固