1. Go to this page and download the library: Download elfsundae/laravel-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/ */
elfsundae / laravel-gravatar example snippets
$app->configure('gravatar');
/**
* Generate Gravatar avatar URL for the given email address.
*
* @param string $email Email or email hash
* @param string|int $connection Connection name or image size
* @param string|int $size Connection name or image size
* @return string
*/
function gravatar($email, $connection = 'default', $size = null)
// For an email address, using the "default" connection configuration
gravatar('[email protected]');
// For an email MD5 hash, using the "default" connection configuration
gravatar('b48def645758b95537d4424c84d1a9ff');
// Using the "large" connection
gravatar($email, 'large');
// Using the "default" connection, and overriding "size" parameter to 100
gravatar($email, 100);
// Using the "avatar" connection, and overriding "size" parameter to 100
gravatar($email, 'avatar', 100);
gravatar($email, 100, 'avatar');
sh
$ cp vendor/elfsundae/laravel-gravatar/config/gravatar.php config/gravatar.php
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.