Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Term Laravel Package

php-tui/term

php-tui/term is a PHP library for terminal control and TUI development, with ANSI escape sequences, cursor movement, text styling, screen management, and input handling. Build responsive command-line interfaces and interactive CLI tools without heavy dependencies.

Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy on terminal plumbing. This is a low-level primitive, not a UI framework: cursor movement, colors/styles, alternate screen buffer, raw mode, and terminal capability handling. Buying it means your team writes product logic instead of hand-rolling ANSI escape sequences and edge cases.
  • CLI/TUI investment level. It informs the roadmap decision of how far to go beyond plain text output — e.g., a static artisan report vs. a live-refreshing dashboard, progress bars, or an interactive installer. Adopting it is a cheap way to prototype the higher-fidelity option before committing to it.
  • Feature candidates it unlocks. Live status views for long-running jobs/queues, in-terminal setup wizards, interactive prompts in internal admin tooling, log viewers with color/severity, and spinners/progress for slow commands.
  • Architecture / exit-cost decision. Because it sits at the bottom of the stack, it should be the only place terminal control lives. A PM decision to "adopt a terminal abstraction" is really a decision to keep the door open: you can swap the rendering library later without rewriting command logic.
  • Scope boundary. It supports the decision to keep TUI work confined to developer- and operator-facing surfaces (internal tools, installers, CI helpers) and not to treat the terminal as a customer-facing product surface.

When to Consider This Package

Consider it when:

  • You are shipping a PHP CLI tool (Laravel Artisan, standalone binary, dev tooling) where output fidelity — color, cursor control, in-place redraws — is a real UX requirement.
  • You need primitives, not widgets. The team is comfortable with terminal semantics and wants to compose its own screens.
  • You want a small, MIT-licensed, narrow dependency with no framework coupling — usable inside or outside Laravel.
  • You are building an internal or operator-facing tool where failure degrades gracefully and a broken render isn't a customer incident.

Look elsewhere when:

  • You need ready-made widgets (tables, forms, panes). Reach for the higher-level TUI layer in the same family, or a mature widget set, rather than composing from cursor moves.
  • You need active maintenance and support. Signals here are thin: ~45 stars and no release since December 2023. Treat it as "adopt with a pin and an exit plan," not a long-term platform bet.
  • Cross-platform Windows terminals are a first-class requirement — validate early, since low-level escape handling is exactly where portability gaps surface.
  • Your needs are simple prompts or styled output — laravel/prompts, Symfony Console helpers, or Termwind cover that with far less surface area.
  • You want a supported vendor relationship or a component with a community to lean on during incidents.

How to Pitch It (Stakeholders)

For executives: A small, MIT-licensed PHP library that gives our CLI tools proper terminal control — colors, live updates, interactive screens — without us building that plumbing ourselves. It's a narrow, low-cost dependency that saves engineering time on internal tooling. The main caveat is maturity: modest adoption and no release since late 2023, so we treat it as a contained, replaceable component rather than a platform commitment.

For engineering: It's a thin abstraction over ANSI/terminal behavior, which means it belongs behind one adapter in our codebase. We get correct escape-sequence handling and raw-mode/alternate-screen support for free, and we keep the ability to swap the rendering layer — or fork — without touching command logic. Pin the version, isolate the integration, and pilot it on one non-critical internal command before broadening use.

Recommendation: Approve a time-boxed pilot on internal developer tooling only. Success criteria: one shipped command with color/progress/live output, no cross-platform regressions, and the integration confined to a single module so replacement stays cheap.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package