orchestra/avatar
最新稳定版本:v6.0.0
Composer 安装命令:
composer require orchestra/avatar
包简介
Avatar Component for Orchestra Platform
README 文档
README
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();
统计信息
- 总下载量: 113.2k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 1
- 依赖项目数: 3
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2014-05-20