mileschou/imgecho
Composer 安装命令:
composer require mileschou/imgecho
包简介
Inline Images Protocol implementation for PHP.
README 文档
README
Echo the image on iTerm App using Inline Images Protocol.
Installation
Use Composer to install.
composer require mileschou/imgecho
Usage
Use the fluent API to build your control code. Following is example:
$uri = 'https://chart.apis.google.com/chart?cht=lc&chs=450x200&chd=t:70,72,67,68,65,59,64,70,73,75,78,80&chxt=x,y&chxl=0:|Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec&chg=10,20'; $resolver = static function () use ($uri) { return file_get_contents($uri); }; $echoer = new MilesChou\ImgEcho\ImgEcho(); $echoer->withName('basic'); $echoer->withImage($resolver); $echoer->send();
统计信息
- 总下载量: 372
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-10-12
