public function getAvatarUrl($email, $size = 80, $extension = 'jpg', $default = 404, $rating = 'g')
    {
        $url = 'https://www.gravatar.com/avatar/';

        $url .= md5(strtolower(trim($email))).'.'.$extension;

        $url .= '?'.http_build_query([
            'd' => $default,
            'r' => $rating,
            's' => $size,
        ]);

        return $url;
    }
public function getAvatarUrl($email, $size = 80, $extension = 'jpg', $default = 404, $rating = 'g')
    {
        $url = 'https://www.gravatar.com/avatar/';

        $url .= md5(strtolower(trim($email))).'.'.$extension;

        $url .= '?'.http_build_query([
            'd' => $default,
            'r' => $rating,
            's' => $size,
        ]);

        return $url;
    }
public function getAvatarUrl ( $ email , $ size = 80 , $ extension = 'jpg' , $ default = 404 , $ rating = 'g' ) { $ url = 'https://www.gravatar.com/avatar/' ; $ url .= md5 ( strtolower ( trim ( $ email ) ) ) . '.' . $ extension ; $ url .= '?' . http_build_query ( [ 'd' => $ default , 'r' => $ rating , 's' => $ size , ] ) ; return $ url ; }
Get user avatar image URL.

@param string $email     User email.
@param int    $size      Image size (default 80).
@param string $extension Image extension (default jpg).
@param int    $default   Error response (default 404).
@param string $rating    Image rating (default G).

@return string
Get user avatar image URL .