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)4375MITPHPPHP ^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 yesterday

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

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

1769d 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

[goat1000/svggraph

Generates SVG graphs

135931.0k3](/packages/goat1000-svggraph)[stefangabos/zebra_image

A single-file, lightweight PHP library designed for efficient image manipulation featuring methods for modifying images and applying filters

138121.6k7](/packages/stefangabos-zebra-image)[treinetic/imageartist

ImageArtist is a php gd Wrapper which makes Image manipulation insanely easy, we introduce ImageArtist as Photoshop for php

8783.2k](/packages/treinetic-imageartist)[johncarter/filament-focal-point-picker

An image focal point picker for Filament Admin.

4431.7k1](/packages/johncarter-filament-focal-point-picker)[yk/laravel-ocr

A wrapper for gocr.

1356.6k](/packages/yk-laravel-ocr)

PHPackages © 2026

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