PHP code example of indigophp / fuel-gravatar
1. Go to this page and download the library: Download indigophp/fuel-gravatar library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
indigophp / fuel-gravatar example snippets
php
$gravatar = \Gravatar::forge('[email protected]');
// 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'));