vinicius73/lavatar
Larablocks Analysis
vinicius73/lavatar works with Laravel 5 (latest release v0.6.3, Nov 20, 2015), which reached end of life: no more fixes, even for security.
Laravel 4 in earlier releases.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 5, past end of life
- No release in the last 12 months (last: Nov 20, 2015)
- 0 downloads a month (needs 10,000)
- 25 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Nov 20, 2015.
- No releases in the last 12 months.
- First released: Aug 15, 2014.
- 1 open issue on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 3, 2026.
| Install | |
|---|---|
composer require vinicius73/lavatar |
|
| Latest Version: | v0.6.3 |
| PHP: | >=5.5 |
| Laravel: | 5 |
| Older releases: | 4 |
| Last Updated: | Nov 20, 2015 |
| Links: | GitHub · Packagist |
Lavatar
Have easy access to various services of avatar, like the Gravatar.
Installation
Run composer require vinicius73/lavatar in your console, or add the new required package in your composer.json
"vinicius73/lavatar": "0.6.*"
Run composer update or php composer.phar update.
After composer command, add new service provider in app/config/app.php :
Vinicius73\Lavatar\LavatarServiceProvider::class,
Now, add new aliases in app/config/app.php.
'Lavatar' => Vinicius73\Lavatar\Facade\LavatarFacade::class,
Finally publish the configuration file of the package php artisan vendor:publish vinicius73/lavatar
Usage
The mechanics of use of the package is quite simple, with it you have access avatars APIs: Gravatar, Minecraft and Avatars.io (Twitter, Facebook and Intagram)
Basic command. With it you create a type ProvidersInterface default object, which can be customized in the configuration file.
$avatar = Lavatar::make($identificator); // Creates standard object (Gravatar|Another)
$avatar->getUrl(); // Returns the URL of the avatar.
$avatar->image(); // Returns the image html tag.
$avatar->getUrl($options); // Override the default settings of the object
// @var string $alt alt img tag
// @var array $options Override the default settings of the object
// @var array $atts extra img html tags
$avatar->image($alt,$options,$atts);
Access more than one provider avatar is easy, just call him
Gravatar
Lavatar::Gravatar('email@domain.com.br')->getUrl();
Lavatar::Gravatar('email.another@domain.com.br')->image();
Lavatar::Twitter('twitterUserName')->getUrl();
Lavatar::Twitter('twitterOther')->image();
Lavatar::Instagram('InstagramUserName')->getUrl();
Lavatar::Instagram('InstagramOther')->image();
Lavatar::Facebook('FacebookUserName')->getUrl();
Lavatar::Facebook('FacebookID')->image();
Minecraft
Lavatar::Minecraft('MinecraftUserName')->getUrl();
Lavatar::Minecraft('MinecraftUser')->image();
Lavatar::Minecraft('MinecraftUser')->avatar();
Lavatar::Minecraft('MinecraftUser')->skin();
Lavatar::Minecraft('MinecraftUser')->helm();
Credits
- Author
- Vinicius73
- Providers
- Gravatar
- Minecraft (minotar)
- Avatars.io
Alternatives to vinicius73/lavatar
A Laravel Gravatar package for retrieving gravatar image URLs or checking the ex...
Turn name, email, and any other string into initial-based avatar or gravatar.
Allows visitors to register/sign in with their social media accounts.
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v0.6.3 | >=5.5 | 5.* | ||
| v0.6.2 | >=5.5 | 5.* | ||
| v0.6.1 | >=5.5 | 5.* | ||
| v0.6 | >=5.5 | 5.* | ||
| v0.5 | >=5.3.0 | 4.* | ||
| v0.4 | >=5.3.0 | 4.* | ||
| v0.3 | >=5.3.0 | 4.* |