shamarkellman/gravatar

gravatar

v1.0.1 2021-02-10 16:54 UTC

This package is auto-updated.

Last update: 2024-05-11 00:58:31 UTC


README

Latest Version on Packagist GitHub Tests Action Status Total Downloads

This package is used to generate a gravatar url for Laravel 8 applications.

Installation

You can install the package via composer:

composer require shamarkellman/gravatar

You can publish and run the migrations with:

You can publish the config file with:

php artisan vendor:publish --provider="ShamarKellman\Gravatar\GravatarServiceProvider" --tag="gravatar-config"

This is the contents of the published config file:

return [
    'size' => 80,
    'max_rating' => 'g',
    'default_image' => 'mp',
    'always_force_default_image' => false,
];

Usage

$gravatar = new ShamarKellman\Gravatar();
echo $gravatar->buildGravatarURL();

or use the Facade

use ShamarKellman\Gravatar\Facades\Gravatar;

Gravatar::buildGravatarURL();

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.