avram/robohash
Composer 安装命令:
composer require avram/robohash
包简介
PHP implementation of Robohash.org image generator
README 文档
README
PHP implementation of Robohash. Uses ImageMagick or GD as fallback (via intervention/image) to process the images. Only basic functionality, image caching and request processing is up to you.
Install
composer require avram/robohash
Usage
Robohash::make() creates an instance of Robohash class and then calls generateImage() on it, which will then return an instance of Intervention\Image, which you can then use to further process the image or save()/encode() it.
<?php
require "vendor/autoload.php";
$robo = \Avram\Robohash\Robohash::make('Avram', 140, 'set5');
$robo->save('robohash.png');
Credits to
- Colin Davis for original Robohash
- hush2 for php-robohash.
统计信息
- 总下载量: 56
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-03-12