PHPackages                             stoffel/console-canvas - 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. stoffel/console-canvas

ActiveLibrary

stoffel/console-canvas
======================

Helper to draw graphics and compose elements on top of Symfony Console Component

0.1(5y ago)2401MITPHPPHP ^7.4 || ^8.0

Since Nov 30Pushed 5y ago1 watchersCompare

[ Source](https://github.com/chr-hertel/console-canvas)[ Packagist](https://packagist.org/packages/stoffel/console-canvas)[ RSS](/packages/stoffel-console-canvas/feed)WikiDiscussions main Synced 6d ago

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

Console Canvas
==============

[](#console-canvas)

Helper to draw graphics and compose elements on top of Symfony Console Component.

Example
-------

[](#example)

```
$ git clone git@github.com:chr-hertel/console-canvas.git
$ cd console-canvas
$ composer install
$ example/rectangles
```

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

[](#installation)

```
$ composer require stoffel/console-canvas
```

Usage in PHP

```
use Stoffel\Console\Canvas\CanvasHelper;
use Stoffel\Console\Canvas\Element\Headline;
use Stoffel\Console\Canvas\Element\Image;
use Stoffel\Console\Canvas\Element\Rectangle;
use Stoffel\Console\Canvas\Fill;
use Stoffel\Console\Canvas\Dimension;
use Stoffel\Console\Canvas\Position;

$canvas = CanvasHelper::create($output);
$canvas
    ->setBackground(Fill::withGradient(['#000000', '#999999']))
    ->addElement(new Position(10, 10), new Rectangle(new Dimension(10, 5), Fill::withColor('#FF0000')))
    ->addElement(new Position(50, 5), new Rectangle(new Dimension(20, 5), Fill::withGradient('summer')))
    ->addElement(new Position(100, 5), new Image('/path/to/image.jpg', new Dimension(30, 25)))
    ->addElement(new Position(10, 40), new Headline('Hello World', Fill::withColor('yellow')))
    ->draw();
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

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

1994d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e644c6c1e90b7d997edd1c25da41c48a76d89b7449fb5788214b341e2cd1a019?d=identicon)[chr-hertel](/maintainers/chr-hertel)

---

Top Contributors

[![chr-hertel](https://avatars.githubusercontent.com/u/2852185?v=4)](https://github.com/chr-hertel "chr-hertel (2 commits)")

### Embed Badge

![Health badge](/badges/stoffel-console-canvas/health.svg)

```
[![Health](https://phpackages.com/badges/stoffel-console-canvas/health.svg)](https://phpackages.com/packages/stoffel-console-canvas)
```

###  Alternatives

[phan/phan

A static analyzer for PHP

5.6k11.2M1.1k](/packages/phan-phan)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-soap/wsdl

Deals with WSDLs

173.5M12](/packages/php-soap-wsdl)[php-soap/wsdl-reader

A WSDL reader in PHP

212.3M9](/packages/php-soap-wsdl-reader)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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