orchestra/avatar
Avatar Component for Orchestra Platform
Avatar Component provide support for driver based avatar provider for your Laravel, PHP or Orchestra Platform application.
Version Compatibility
| Laravel | Avatar |
|---|---|
| 5.5.x | 3.5.x |
| 5.6.x | 3.6.x |
| 5.7.x | 3.7.x |
| 5.8.x | 3.8.x |
| 6.x | 4.x |
| 7.x | 5.x |
| 8.x | 6.x |
Installation
To install through composer, run the following command from terminal:
composer require "orchestra/avatar"
Configuration
Add Orchestra\Avatar\AvatarServiceProvider service provider in config/app.php.
'providers' => [
// ...
Orchestra\Avatar\AvatarServiceProvider::class,
],
You might also want to add Orchestra\Support\Facades\Avatar to class aliases in config/app.php:
'aliases' => [
// ...
'Avatar' => Orchestra\Support\Facades\Avatar::class,
],
Usage
You can easily display an avatar by passing a User instance.
<?php
$user = User::find(1);
$avatar = Avatar::user($user)->render();
Related Packages
creativeorange/gravatar
A Laravel Gravatar package for retrieving gravatar image URLs or checking the ex...
8,597,003
546
laravolt/avatar
Turn name, email, and any other string into initial-based avatar or gravatar.
6,356,928
1,983
lianhechx/laravel-gravatar
A Laravel gravatar package for retrieving gravatar image URLs or checking the ex...
68
0
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v6.0.0 | ^7.3 | | MIT | ||
| v5.0.0 | >=7.2 | MIT | ||
| v4.0.0 | >=7.2 | MIT | ||
| v3.8.0 | >=7.1 | MIT | ||
| v3.7.0 | >=7.1 | MIT | ||
| v3.6.1 | >=7.1 | MIT | ||
| v3.6.0 | >=7.1 | MIT | ||
| v3.5.0 | >=7.0 | MIT | ||
| v3.4.0 | >=5.6.0 | MIT | ||
| v3.3.0 | >=5.6.0 | MIT | ||
| v3.2.0 | >=5.5.0 | MIT | ||
| v3.1.2 | >=5.5.0 | MIT | ||
| v3.1.1 | >=5.5.0 | MIT | ||
| v3.1.0 | >=5.4.0 | MIT | ||
| v3.0.2 | >=5.4.0 | MIT | ||
| v3.0.1 | >=5.4.0 | MIT | ||
| v3.0.0 | >=5.4.0 | MIT | ||
| v2.2.1 | >=5.4.0 | 4.2.* | MIT | |
| v2.2.0 | >=5.4.0 | 4.2.* | MIT | |
| v2.1.1 | >=5.3.3 | 4.1.* | MIT | |
| v2.1.0 | >=5.3.3 | 4.1.* | MIT |