定制 atereshchuk/blade-boring-avatars 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

atereshchuk/blade-boring-avatars

最新稳定版本:0.0.2

Composer 安装命令:

composer require atereshchuk/blade-boring-avatars

包简介

Blade components to auto generate boring avatars based on name

README 文档

README

A Blade version of Boring Avatars. Built using Laravel Blade.

Based on Boring Avatar's description,

Boring Avatars a tiny JavaScript React library that generates custom, SVG-based, round avatars from any username and color palette.

Here I make a blade component to use in your laravel projects

Features

Installation

composer require atereshchuk/blade-boring-avatars

Props

Props:

  • size: number
    • Default: 40
  • name: string
    • Default: "Clara Barton"
  • colors: array[]
    • Accepts a php array of colors.
    • Default: ["#92A1C6", "#146A7C", "#F0AB3D", "#C271B4", "#C20D90"]

Usage

Basic usage (with default props):

<x-avatar />

With props:

  <!--
      view.blade.php
      Where $colors is php valid array
  -->
  <x-avatar size="80" name="Khaled Sadek" :colors="$colors" />

Credits

Credits to @hihayk (GitHub) and @josep_martins (GitHub) for creating the original Boring Avatars library at boringdesigners!

统计信息

  • 总下载量: 13
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固