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. [Utility &amp; Helpers](/categories/utility)
4. /
5. linkorb/tty

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

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

TTY/PTY library

77411PHPCI passing

Since Jul 17Pushed 3w ago5 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (1)

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

27

—

LowBetter than 46% of packages

Maintenance63

Regular maintenance activity

Popularity15

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50% 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

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![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)
```

###  Alternatives

[magemojo/m2-ce-cron

Replacement package for Magento 2 Cron Functionality

163332.2k](/packages/magemojo-m2-ce-cron)[minwork/array

Pack of advanced array functions specifically tailored for: associative (assoc) array, multidimensional array, array of objects and handling nested array elements

63272.6k5](/packages/minwork-array)[czemu/nova-calendar-tool

Calendar tool for Laravel Nova.

2816.4k](/packages/czemu-nova-calendar-tool)

PHPackages © 2026

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