Download the PHP package crumbls/laravel-cli-table without Composer
On this page you can find all versions of the php package crumbls/laravel-cli-table. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download crumbls/laravel-cli-table
More information about crumbls/laravel-cli-table
Files in crumbls/laravel-cli-table
Package laravel-cli-table
Short Description A Laravel package providing a selectable console table with arrow key navigation
License MIT
Informations about the package laravel-cli-table
Laravel CLI Table
A powerful Laravel package that brings interactive, selectable console tables to your Artisan commands. Navigate through data with arrow keys, customize colors, and build better CLI experiences.
Why Use This Package?
Building interactive CLI tools shouldn't be complicated. This package extends Symfony's robust Console Table with navigation and selection capabilities, giving you the power to create professional command-line interfaces with just a few lines of code.
Features
- Interactive Navigation - Arrow key navigation through table rows
- Customizable Colors - Match your application's theme
- Symfony Foundation - Built on Symfony Console Table (all original features included)
- Laravel Integration - Works seamlessly with Artisan commands
- Cross-Platform - Supports macOS, Linux, and Windows terminals
- Zero Configuration - Works out of the box
Installation
Usage
Basic Usage
With Callback
Non-Interactive Mode
Customizing Selection Colors
Controls
- ↑/↓ Arrow Keys: Navigate up and down
- Enter: Select current row
- Escape: Exit without selection
- Ctrl+C: Force exit
Testing
Requirements
- PHP ^8.2
- Laravel ^12.0
- Symfony Console ^7.2
Advanced Usage
Building Interactive Menus
Adding Action Rows
Translations
The package includes translatable strings for instructions and messages. Publish the language files:
Then customize the translations in lang/vendor/cli-table/en/table.php:
Troubleshooting
Arrow Keys Not Working?
- Ensure your terminal supports ANSI escape sequences
- Try using a modern terminal (Terminal.app, iTerm2, Windows Terminal)
- Some older terminals may not support interactive features
Colors Not Displaying?
- Your terminal may not support color output
- Try different color combinations:
red,green,blue,yellow,magenta,cyan,white,black
Support
Need help or found a bug? We're here to help!
- Report Issues: GitHub Issues
- Get Help: Join our Discord Community
- Documentation: Check out the examples above and in the
/testsdirectory
Contributing
We welcome contributions! Please feel free to submit pull requests or open issues to help improve this package.
Commercial Use
We love seeing how this package is used! If you're using Laravel CLI Table in a commercial application, we'd appreciate a postcard from your city:
Requirements
- PHP ^8.2
- Laravel ^12.0
- Symfony Console ^7.2
License
MIT - feel free to use this package in your personal and commercial projects.