jruedaq/gravatar-url
Composer 安装命令:
composer require jruedaq/gravatar-url
包简介
Get Gravatar image URL and put by default an image with username initials, You can test this library here https://gravatar-url.herokuapp.com/examples/LibraryUse.php
README 文档
README
GravatarUrl
This is a method for the get gravatar image most easily and, this library have a feature, if in gravatar no exists an image for user email returns default image with username initials.
You can test example in this link (https://gravatar-url.herokuapp.com/examples/LibraryUse.php).
Preview
Installation
$ composer require jruedaq/gravatar-url
Basic use
In your php file call autoload.php
require 'vendor/autoload.php';
getting a url image
$imageUrl = GetGravatar::getUrl(SessionData::get()->getFirstName(), SessionData::get()->getEmail(), 230);
Complete example
<?php require 'vendor/autoload.php'; use jruedaq\GravatarUrl\GetGravatar; $imageUrl = GetGravatar::getUrl("Juan David Rueda Quiroga", "jrueda@oneago.com", 230); ?> <img src="<?php echo $imageUrl; ?>" alt="profile image">
统计信息
- 总下载量: 433
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-09-25