承接 darbaoui/laravel-ui-avatars 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

darbaoui/laravel-ui-avatars

Composer 安装命令:

composer require darbaoui/laravel-ui-avatars

包简介

generate an avatar image based on the name, size and background color and more

README 文档

README

StyleCI Shield build:passed Total Downloads Latest Stable Version License

Installation

This package requires Laravel 5.4 or higher.

  1. You can install the package via composer:
composer require darbaoui/laravel-ui-avatars

Usage

use Darbaoui\Avatar\Facades\Avatar;

// simple avatar
Avatar::name('imad darbaoui')
        ->background('ffd1bf')
        ->color('ff4500')->get();
// avatar = https://ui-avatars.com/api/?name=imad+darbaoui&background=ffd1bf&color=ff4500


// you can chain any other method if you want to add other parameters to your avatar
Avatar::name('imad darbaoui')
        ->size(124)
        ->rounded()
        ->uppercase(false)
        ->svg()
        ->background('ffd1bf')
        ->color('ff4500')->get();
// avatar = https://ui-avatars.com/api/?size=124&rounded=1&uppercase=0&format=svg&name=imad+darbaoui&background=ffd1bf&color=ff4500

Available methods

methods description default value
name() The name used to generate initials John Doe
size() Avatar image size in pixels. Between: 16 and 512 64
rounded() Boolean specifying if the returned image should be a circle false
uppercase() Decide if the API should uppercase the name/initials. true
fontSize() Font size in percentage of size. Between 0.1 and 1. 0.5
background() Hex color for the image background, without the hash (#) f0e9e9
color() Hex color for the font, without the hash (#). 8b5d5d
length() Length of the generated initials. 2
bold() Boolean specifying if the returned letters should use a bold font. Default: false false
svg() Decide to the avatar should be return SVG -

统计信息

  • 总下载量: 9.24k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 11
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 11
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-02-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固