Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

Helper package for creating Gravatar url's and image tags.

License

Notifications You must be signed in to change notification settings

kevindierkx/gravatar-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gravatar Helper

Helper package for creating Gravatar url's and image tags.

Installation

To install this package you will need:

  • Laravel 5+
  • PHP 5.4

You must then modify your composer.json file and run composer update to include the latest version of the package in your project.

"require": {
    "kevindierkx/gravatar-helper": "2.0.*"
}

Or you can run the composer require command from your terminal.

composer require kevindierkx/gravatar-helper:2.0.*

Once the package is installed you need to open app/config/app.php and register the required service provider.

'providers' => [
    Kevindierkx\GravatarHelper\Providers\LaravelServiceProvider::class,
]

Optionaly you can add the following line to your aliases.

'aliases' => [
    'Gravatar' => Kevindierkx\GravatarHelper\Providers\Facades\Gravatar::class,
]

Configuration

Run the following command to publish the package configuration.

php artisan vendor:publish

Usage

To parse an image tag.

Gravatar::image('[email protected]');

// <img src="https://secure.gravatar.com/avatar/5658ffccee7f0ebfda2b226238b1eb6e?s=80&r=g&d=404">

Or to parse an url.

Gravatar::url('[email protected]');

// https://secure.gravatar.com/avatar/5658ffccee7f0ebfda2b226238b1eb6e?s=80&r=g&d=404

Credits

License

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

About

Helper package for creating Gravatar url's and image tags.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages