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
Console Table

Console Table Laravel Package

pear/console_table

PEAR Console_Table is a PHP library for rendering clean, aligned text tables in terminal and console output. It supports headers, rows, column alignment, padding, borders, auto-sizing, and flexible formatting, making CLI reports and command-line data displays easy to build.

View on GitHub
Deep Wiki
Context7

Library that makes it easy to build console style tables.

Frequently asked questions about Console Table
Can I use pear/console_table in a Laravel Artisan command?
It is technically possible, but it is a poor fit for a new Laravel application. Laravel already exposes table rendering through Symfony Console's Table helper via $this->table(), so Console_Table duplicates existing framework capability with an older PEAR-style implementation. Use it only for isolated legacy compatibility and wrap it behind an adapter rather than spreading direct calls through your commands.
How do I install pear/console_table with Composer in a Laravel project?
It is a Composer package under pear/console_table, but the evaluation notes archived status and PEAR-era packaging that may not align cleanly with modern Composer and Laravel conventions. Validate installation under your exact Laravel and PHP matrix, check autoload and include-path behavior, and pin the dependency if you retain it. For new development, prefer Laravel's native Artisan table rendering instead of adding this package.
Does pear/console_table support Laravel 10 or Laravel 11?
No official modern Laravel support is indicated in the provided context, and the package is archived with PEAR-era packaging. You would need to test it under your exact Laravel and PHP matrix, including PHP 8.1, 8.2, and 8.3, and expect compatibility risk. Laravel's built-in table helper is the supported and preferable option.
What features does PEAR Console_Table provide for console output?
PEAR Console_Table builds aligned text tables for terminal and console output. It supports headers, rows, column alignment, padding, borders, auto-sizing, and flexible formatting for CLI reports and command-line data displays. Symfony Console Table, already available in Laravel, covers similar needs with modern maintenance.
Is pear/console_table maintained and safe for production use?
The package is archived, meaning there are no upstream bug fixes, PHP compatibility updates, or security maintenance. Your team would own all fixes, compatibility patches, and security review if you keep it. Use it only for low-value, non-critical CLI tooling and avoid it for customer-facing or machine-parsed output.
What are the alternatives to pear/console_table in Laravel?
Use Laravel's Artisan table helper via $this->table() or Symfony Console Table directly. Both are already integrated with the framework and maintained alongside Laravel and Symfony. If you have legacy Console_Table calls, isolate them behind an internal formatter interface and migrate call sites incrementally to one of these alternatives.
Does pear/console_table handle UTF-8, ANSI colors, terminal width, and Windows consoles?
The evaluation flags limited Unicode and wide-character handling, and the behavior for ANSI colors, terminal width, and Windows consoles is unclear and should be validated. Test output on your target terminals and encodings before relying on it. Symfony Console Table generally handles modern terminal concerns better, though you should still test your specific cases.
How should I test output from pear/console_table in a Laravel app?
Add characterization tests that capture the exact expected output for each command and terminal scenario. Cover UTF-8 and wide characters, ANSI behavior, terminal width, and Windows consoles if those matter to your users. Avoid using this output for machine parsing, and treat formatting changes as breaking if external scripts parse your CLI output.
Can I migrate from pear/console_table to Laravel's built-in table helper?
Yes. Isolate Console_Table behind a small internal formatter interface, then replace call sites incrementally with $this->table() or Symfony Console Table. This limits direct dependency spread and reduces output-compatibility risk. Schedule removal or replacement before the dependency becomes broadly adopted in your codebase.
What license and PHP version support does pear/console_table have?
The provided evaluation says the license and support posture are unclear and that the package is archived, so confirm both from package metadata before use. Test PHP 8.1, 8.2, and 8.3 behavior in a time-boxed spike under your target Laravel version. If you retain it, document the exact supported runtime and pin the dependency version.
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.
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons