承接 potatopowered/gravatar-helper 相关项目开发

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

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

potatopowered/gravatar-helper

Composer 安装命令:

composer require potatopowered/gravatar-helper

包简介

A helper that can be used to pull profile pictures from the gravatar service for CakePHP 3.x

README 文档

README

Software License Travis Codecov Scrutinizer Packagist

A helper that can be used to pull profile pictures from the gravatar service for CakePHP 3.x

Description

The gravatar helper aims to make it easy to pull user avatars from the gravatar service rather than having to rebuilt the basic connection and link generation for the API every time you want to use it. There are many customizations that can be set including defaults and the avatar size returned.

Installation

composer require potatopowered/gravatar-helper

Add the helper to the public helpers variable of the controller you need it on or in the AppController to have it accessible in all controllers.

public $helpers = [
    'Gravatar' => [
        'className' => 'GravatarHelper.Gravatar'
    ]
];

Usage

To use the gravatar helper you simply call the avatar function of the Gravatar helper with the user email as the argument. There are also several options you can set to change defaults like size.

// the avatar of the user with an email of $email
$this->Gravatar->avatar($email, ['size' => 40]);

Options for Avatar

  • size: The width and height of the profile (150 default)
  • default: The default gravatar image (mm default) List Here
  • class: The css class of the image tag (gravatar default)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-02-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固