PHPackages                             linkorb/tty - 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. linkorb/tty

ActiveLibrary

linkorb/tty
===========

TTY/PTY library

7741[1 PRs](https://github.com/linkorb/tty/pulls)PHPCI passing

Since Mar 24Pushed 3mo ago5 watchersCompare

[ Source](https://github.com/linkorb/tty)[ Packagist](https://packagist.org/packages/linkorb/tty)[ RSS](/packages/linkorb-tty/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

TTY library
===========

[](#tty-library)

This library contains functionality for working with TTY/PTYs and related formats and protocols.

Included:
---------

[](#included)

- A ttyrec parser (extracts frames with payload and timing from ttyrec files)
- A VT100/ANSI Terminal Emulator. Parses escape codes, CSI, OSI etc commands
- An AsciiRenderer, to render Terminal buffers for replays and debugging
- Examples in [examples/](examples/)

How to use
----------

[](#how-to-use)

```
composer install
ttyrec tty.log
# execute some commands, like ls, df, etc
exit
php examples/ttyrec-player.php

```

Notes
-----

[](#notes)

When starting this project I had no idea what I was getting in to. VT100 is an insane protocol. I'm keeping notes on things I'm learning along the way in [NOTES.md](NOTES.md)

TODO / Next steps:
------------------

[](#todo--next-steps)

- Extract executed commands from tty sessions (initial goal of this project)
- Solid test-cases based on pre-recorded tty sessions
- Support more escape codes for coloring, scrolling and other more advanced use-cases

License
-------

[](#license)

MIT. Please refer to the [license file](LICENSE.md) for details.

Brought to you by the LinkORB Engineering team
----------------------------------------------

[](#brought-to-you-by-the-linkorb-engineering-team)

[![](https://camo.githubusercontent.com/62fb66b034de7ea7fca9fd9776424b5348daa76ef8622caf92c2f7622003e5ef/687474703a2f2f7777772e6c696e6b6f72622e636f6d2f642f6d6574612f74696572312f696d616765732f6c696e6b6f7262656e67696e656572696e672d6c6f676f2e706e67)](https://camo.githubusercontent.com/62fb66b034de7ea7fca9fd9776424b5348daa76ef8622caf92c2f7622003e5ef/687474703a2f2f7777772e6c696e6b6f72622e636f6d2f642f6d6574612f74696572312f696d616765732f6c696e6b6f7262656e67696e656572696e672d6c6f676f2e706e67)
Check out our other projects at [linkorb.com/engineering](http://www.linkorb.com/engineering).

Btw, we're hiring!

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance57

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity43

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1db66b320db18b8036ea68211b7d8a39e7c6da97e6fd29f59a50380ebb69d0bb?d=identicon)[joostfaassen](/maintainers/joostfaassen)

---

Top Contributors

[![joostfaassen](https://avatars.githubusercontent.com/u/411113?v=4)](https://github.com/joostfaassen "joostfaassen (1 commits)")

### Embed Badge

![Health badge](/badges/linkorb-tty/health.svg)

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

PHPackages © 2026

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