承接 darwin-8/avataaar 相关项目开发

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

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

darwin-8/avataaar

最新稳定版本:1.0.0

Composer 安装命令:

composer require darwin-8/avataaar

包简介

php package for getavataaars

README 文档

README

Uses getavataaars service and provides interface for work with avataaars.io api.

This package allows you :

  • Generate random styles.
  • Generate styles with selected options.
  • Generate styles for gender.

Installation

Dependencies:

Installation:

- Require the package via Composer

composer require darwin-8/avataaar

Usage

Just make Avataaar instance and asc get() method to get random img (string)

$avataaar = new \Avataaar\Avataaar(['host' => 'https://avataadfars.io']);

$avataaar->get();

You can use only() and except() methods to set styles you want, or don`t want to see in img. Dont forget use get() method then!

$avataaar = new \Avataaar\Avataaar(['host' => 'https://avataadfars.io']);

$avataaar->only(['topType' => ["ShortHairDreads01", "ShortHairDreads02", "ShortHairFrizzle"]])
         ->except(['topType' => ["ShortHairDreads02"]])
         ->get();

For addition you can use girl() and guy() methods to set styles for girl or boy. Dont forget use get() method then!

$avataaar = new \Avataaar\Avataaar(['host' => 'https://avataadfars.io']);

$avataaar->girl()->only(['skinColor' => ['Brown']])->get();

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-09-30