orchestra/avatar

Avatar Component for Orchestra Platform
114,013 7
Install
composer require orchestra/avatar
Latest Version:v6.0.0
PHP:^7.4 || ^8.0
License:MIT
Last Updated:Apr 18, 2021
Links: GitHub  ·  Packagist
Maintainer: crynobone

Avatar Component for Orchestra Platform

Avatar Component provide support for driver based avatar provider for your Laravel, PHP or Orchestra Platform application.

tests Latest Stable Version Total Downloads Latest Unstable Version License Coverage Status

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

orchestra/imagine

Imagine (Wrapper) Component for Laravel 5

228,628 66
laravolt/avatar

Turn name, email, and any other string into initial-based avatar or gravatar.

6,123,941 1,983
orchestra/parser

XML Document Parser for Laravel and PHP

1,800,772 459
creativeorange/gravatar

A Laravel Gravatar package for retrieving gravatar image URLs or checking the ex...

8,364,900 546
lianhechx/laravel-gravatar

A Laravel gravatar package for retrieving gravatar image URLs or checking the ex...

68 0