PHPackages                             mileschou/imgecho - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. mileschou/imgecho

ActiveLibrary[Image &amp; Media](/categories/media)

mileschou/imgecho
=================

Inline Images Protocol implementation for PHP.

v0.1.0(4y ago)4372MITPHPPHP ^7.1 | ^8.0

Since Oct 12Pushed 4y ago1 watchersCompare

[ Source](https://github.com/MilesChou/imgecho)[ Packagist](https://packagist.org/packages/mileschou/imgecho)[ RSS](/packages/mileschou-imgecho/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Imgecho
=======

[](#imgecho)

[![tests](https://github.com/MilesChou/imgecho/workflows/tests/badge.svg)](https://github.com/MilesChou/imgecho/workflows/tests/badge.svg)[![codecov](https://camo.githubusercontent.com/0bd335b7526ed57ed4745c8727679eb20e684ce10c6087ec3a7b8a93474269d1/68747470733a2f2f636f6465636f762e696f2f67682f4d696c657343686f752f696d676563686f2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/MilesChou/imgecho)[![Codacy Badge](https://camo.githubusercontent.com/28da2c6d2ec85a2c390155a2e1414ff597d43e4b2ef0bceb285835abcd90566f/68747470733a2f2f6170702e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3938333139313239663732663433346338373232373761313366623662396236)](https://www.codacy.com/gh/MilesChou/imgecho/dashboard)[![Latest Stable Version](https://camo.githubusercontent.com/1a395bb5747ed58484bb4ee2089a0e949a70df89b5ddab09bd7bba438330eb72/68747470733a2f2f706f7365722e707567782e6f72672f4d696c657343686f752f696d676563686f2f762f737461626c65)](https://packagist.org/packages/MilesChou/imgecho)[![Total Downloads](https://camo.githubusercontent.com/d4b017475554cc3feff472f3d58227c52d6e497aaafc96386b8427342678138f/68747470733a2f2f706f7365722e707567782e6f72672f4d696c657343686f752f696d676563686f2f642f746f74616c2e737667)](https://packagist.org/packages/MilesChou/imgecho)[![License](https://camo.githubusercontent.com/94aa63643558db5898079df47d5d4f50049521e19959dd0f730179f6e5867e36/68747470733a2f2f706f7365722e707567782e6f72672f4d696c657343686f752f696d676563686f2f6c6963656e7365)](https://packagist.org/packages/MilesChou/imgecho)

Echo the image on iTerm App using [Inline Images Protocol](https://iterm2.com/documentation-images.html).

Installation
------------

[](#installation)

Use Composer to install.

```
composer require mileschou/imgecho

```

Usage
-----

[](#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();
```

[![](/docs/images/basic-example.png)](/docs/images/basic-example.png)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1673d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/20872dcc4b888075f03819d5470db8198ffcc5f9edb791aba5f007e34355a6c9?d=identicon)[MilesChou](/maintainers/MilesChou)

---

Top Contributors

[![MilesChou](https://avatars.githubusercontent.com/u/1258752?v=4)](https://github.com/MilesChou "MilesChou (5 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/mileschou-imgecho/health.svg)

```
[![Health](https://phpackages.com/badges/mileschou-imgecho/health.svg)](https://phpackages.com/packages/mileschou-imgecho)
```

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)[humanmade/tachyon-plugin

Rewrites WordPress image URLs to use Tachyon

87338.5k2](/packages/humanmade-tachyon-plugin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
