PHPackages                             graze/buffered-console - 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. graze/buffered-console

Abandoned → [graze/console-diff-renderer](/?search=graze%2Fconsole-diff-renderer)Library[CLI &amp; Console](/categories/cli)

graze/buffered-console
======================

only write output to a console that has changed

v1.1.1(1mo ago)5208[1 issues](https://github.com/graze/console-diff-renderer/issues)MITPHPPHP ^7.4 || ^8.0CI passing

Since Jun 7Pushed 1mo ago9 watchersCompare

[ Source](https://github.com/graze/console-diff-renderer)[ Packagist](https://packagist.org/packages/graze/buffered-console)[ Docs](https://github.com/graze/console-diff-renderer)[ RSS](/packages/graze-buffered-console/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (10)Versions (20)Used By (0)

Console Diff Renderer
=====================

[](#console-diff-renderer)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2637db788a4d13aab279e14add90ca314e6b350c734a7cd39072f872fe9d3091/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6772617a652f636f6e736f6c652d646966662d72656e64657265722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/graze/console-diff-renderer)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/5e36b8d294bad4b8045b3edfc31f769baff738d01dc01d05740a2772e47f49cf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6772617a652f636f6e736f6c652d646966662d72656e64657265722f63692e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://github.com/graze/console-diff-renderer/actions/workflows/ci.yml)[![Total Downloads](https://camo.githubusercontent.com/3d92ef1f626fed096d978e013514422507cea587270d3269385f87d28381c9c7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6772617a652f636f6e736f6c652d646966662d72656e64657265722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/graze/console-diff-renderer)

Only render things that have changed to the console.

Usage
-----

[](#usage)

```
$output = new DiffConsoleOutput($existing);

$output->reWrite([
    'first line',
    'second line',
]);

$output->reWrite([
    'first line here',
    'second line',
]);
```

This will navigate the cursor to the end of `first line` and write ` here` then navigate the cursor back to the end.

- Supports Formatting
- Supports ANSI control codes
- Will wrap around based on the terminal size
- Can trim based on the terminal size
- Will only write the number of lines that are visible to the user

Install
-------

[](#install)

Via Composer

```
$ composer require graze/console-diff-renderer
```

Development
-----------

[](#development)

```
$ make build
```

### Testing

[](#testing)

```
$ make test
```

### Contributing

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Harry Bragg](https://github.com/h-bragg)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

53

—

FairBetter than 96% of packages

Maintenance90

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 72.7% 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 ~218 days

Recently: every ~813 days

Total

16

Last Release

33d ago

Major Versions

0.6.2 → v1.0.02026-05-28

PHP version history (4 changes)0.1PHP ^5.6 | ^7.0

0.4.2PHP ^5.5 | ^7.0

v1.0.0PHP ^7.4

v1.1.0PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/637788?v=4)[graze.com](/maintainers/graze)[@graze](https://github.com/graze)

---

Top Contributors

[![rick-lam](https://avatars.githubusercontent.com/u/114425681?v=4)](https://github.com/rick-lam "rick-lam (8 commits)")[![biggianteye](https://avatars.githubusercontent.com/u/1482649?v=4)](https://github.com/biggianteye "biggianteye (1 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![peterjaap](https://avatars.githubusercontent.com/u/431360?v=4)](https://github.com/peterjaap "peterjaap (1 commits)")

---

Tags

console-toolphpsymfony-consolegrazeconsole-diff-renderer

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/graze-buffered-console/health.svg)

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

PHPackages © 2026

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