PHPackages                             whatthejeff/drawille - 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. [CLI &amp; Console](/categories/cli)
4. /
5. whatthejeff/drawille

ActiveLibrary[CLI &amp; Console](/categories/cli)

whatthejeff/drawille
====================

Terminal drawing with braille

v1.0.1(11y ago)10387321MITPHPPHP &gt;=5.4.0

Since May 25Pushed 11y ago5 watchersCompare

[ Source](https://github.com/whatthejeff/php-drawille)[ Packagist](https://packagist.org/packages/whatthejeff/drawille)[ Docs](http://github.com/whatthejeff/php-drawille)[ RSS](/packages/whatthejeff-drawille/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (1)

php-drawille
============

[](#php-drawille)

Terminal drawing with [braille](http://en.wikipedia.org/wiki/Braille).

[![Octocat example](docs/images/octocat.png)](docs/images/octocat.png)

Requirements
------------

[](#requirements)

php-drawille requires PHP 5.4.0 or later.

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

[](#installation)

The recommended way to install php-drawille is [through composer](http://getcomposer.org). Just create a `composer.json` file and run the `php composer.phar install` command to install it:

```
{
    "require": {
        "whatthejeff/drawille": "~1.0"
    }
}
```

Usage
-----

[](#usage)

```
use Drawille\Canvas;

$canvas = new Canvas();

for($x = 0; $x set($x / 10, 10 + sin($x * M_PI / 180) * 10);
}

echo $canvas->frame(), "\n";
```

[![Usage example](docs/images/sin.png)](docs/images/sin.png)

```
use Drawille\Turtle;

$turtle = new Turtle();

for($x = 0; $x < 36; $x++) {
    $turtle->right(10);

    for($y = 0; $y < 36; $y++) {
        $turtle->right(10);
        $turtle->forward(8);
    }
}

echo $turtle->frame(), "\n";
```

[![Turtle example](docs/images/turtle.png)](docs/images/turtle.png)

Examples
--------

[](#examples)

To use the scripts in the [examples](examples) directory, you need to install the dependencies with composer.

```
$ cd examples
$ php composer.phar install
$ ./img2term.php --fab --threshold 600 ~/Pictures/sb.png

```

[![img2term example](docs/images/sb.png)](docs/images/sb.png)

Tests
-----

[](#tests)

[![Build Status](https://camo.githubusercontent.com/829cf60ab4cf222715bb734a26134a20aa88c7389c87133868f759d50677b221/68747470733a2f2f7472617669732d63692e6f72672f776861747468656a6566662f7068702d64726177696c6c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/whatthejeff/php-drawille)

To run the test suite, you need [composer](http://getcomposer.org).

```
$ php composer.phar install
$ vendor/bin/phpunit

```

Acknowledgements
----------------

[](#acknowledgements)

php-drawille is a port of [drawille](https://github.com/asciimoo/drawille).

License
-------

[](#license)

php-drawille is licensed under the [MIT license](LICENSE).

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity59

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

Every ~1 days

Total

2

Last Release

4366d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/adbe017ebec901082c02ab3fd307196b2a1c9103c27c8e4327ba5ca25252a8d6?d=identicon)[whatthejeff](/maintainers/whatthejeff)

---

Top Contributors

[![whatthejeff](https://avatars.githubusercontent.com/u/306525?v=4)](https://github.com/whatthejeff "whatthejeff (17 commits)")

---

Tags

consoleterminaldrawingTurtlebraille

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/whatthejeff-drawille/health.svg)

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

###  Alternatives

[symfony/console

Eases the creation of beautiful and testable command line interfaces

9.8k1.1B11.2k](/packages/symfony-console)[php-school/cli-menu

A command line menu helper in PHP

2.0k1.1M27](/packages/php-school-cli-menu)[recca0120/terminal

run laravel artisan command in web application

878410.9k2](/packages/recca0120-terminal)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)[aplus/cli

Aplus Framework CLI Library

2301.7M6](/packages/aplus-cli)[splitbrain/php-cli

Easy command line scripts for PHP with opt parsing and color output. No dependencies

177817.2k28](/packages/splitbrain-php-cli)

PHPackages © 2026

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