fuel-package fuel-gravatar
Gravatar package to return avatar, profile data, QR-code, VCF
indigophp/fuel-gravatar
Gravatar package to return avatar, profile data, QR-code, VCF
- Monday, June 16, 2014
- by mark.sagikazar
- Repository
- 0 Watchers
- 0 Stars
- 61 Installations
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 5 Versions
- 0 % Grown
Fuel Gravatar
, (*1)
Fuel package to get Avatar, Profile data, QR-code and VCF from Gravatar, (*2)
Install
Via Composer, (*3)
``` json
{
"require": {
"indigophp/fuel-gravatar": "@stable"
}
}, (*4)
## Usage
``` php
$gravatar = \Gravatar::forge('YOUR@EMAILADDRESS.COM');
// Return plain URL of avatar
$gravatar->avatar();
// Return HTML img tag
$gravatar->avatar(true, array('class' => 'gravatar'));
// Return profile as array
$gravatar->profile();
// Return plain URL of QR code
$gravatar->qr();
// Return HTML img tag
$gravatar->qr(true, array('class' => 'gravatar'));
// Return plain URL of VCF
$gravatar->vcf();
// Return HTML anchor tag
$gravatar->vcf(true, 'Link to VCF', array('class' => 'gravatar'));
Configuration
-
protocol
(http | https | null): use https or http. Leaving unset or setting to null means \Input::protocol()
will be used.
-
size
(integer | null): Size of avatar (1-2048 px) or QR-code (1-500 px). The default value is 80px.
-
default
: Default picture in case of none found (Values: 404, mm, identicon, monsterid, wavatar, retro, blank, URL)
-
force
(true | false): Return the default image, even if the user is found
-
rating
( G | PG | R | X): Image rating. See this link
-
format
( xml, json, php): Format of returned data from server
-
auto
( true | false): Autoformat response
-
callback
(string): Function wrapped around JSON result
Credits
License
The MIT License (MIT). Please see License File for more information., (*5)
dev-develop
dev-develop
https://indigophp.com
Gravatar package to return avatar, profile data, QR-code, VCF
Sources
Download
MIT
The Requires
by
Márk Sági-Kazár
by
Tamás Barta
profile
avatar
gravatar
dev-master
9999999-dev
https://indigophp.com
Gravatar package to return avatar, profile data, QR-code, VCF
Sources
Download
MIT
The Requires
by
Márk Sági-Kazár
by
Tamás Barta
profile
avatar
gravatar
v1.0.0
1.0.0.0
https://indigophp.com
Gravatar package to return avatar, profile data, QR-code, VCF
Sources
Download
MIT
The Requires
by
Márk Sági-Kazár
by
Tamás Barta
profile
avatar
gravatar
v0.4.0
0.4.0.0
https://indigophp.com
Gravatar package to return avatar, profile data, QR-code, VCF
Sources
Download
MIT
The Requires
by
Márk Sági-Kazár
by
Tamás Barta
profile
avatar
gravatar