|
| 1 | +# Boxer |
| 2 | +**A retro-flavored CLI styling toolbox for the modern terminal artisan.** |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | +Boxer is a Symfony Console-compatible helper package that adds stylistic and interactive output methods. It provides drop-in enhancements over Symfony Style and Formatter helper classes, allowing CLI applications to display consistently styled banners, block messages, and boxed outputs. |
| 11 | + |
| 12 | +## Features |
| 13 | + |
| 14 | +- Colored and styled output blocks (`box`, `slider`, `banner`) |
| 15 | +- Seamless integration with `Symfony\Component\Console\Style\SymfonyStyle` |
| 16 | +- Drop-in replacement with fallback to default Symfony behavior i.e., by `--boxless` option |
| 17 | +- Minimal configuration |
| 18 | +- Sample usage file included |
| 19 | + |
| 20 | +## Why Boxer? |
| 21 | + |
| 22 | +Symfony’s Console component is powerful but lacks modern, styled outputs by default. Boxer enhances CLI UX without complicating your codebase. |
| 23 | + |
| 24 | +## Requirements |
| 25 | + |
| 26 | +- [Composer](https://getcomposer.org/) installed globally, or use [DDEV](https://ddev.com/) where Composer is pre-installed |
| 27 | +- `PHP 8.2` or higher (can optionally be run via DDEV with pre-installed one) |
| 28 | +- `symfony/console` `^6.1 || ^7.0` |
| 29 | +- `symfony/var-dumper` `^6.0 || ^7.0` |
| 30 | + |
| 31 | +## Installation |
| 32 | + |
| 33 | +### Fastest, via Composer |
| 34 | + |
| 35 | +```bash |
| 36 | +composer require biesior/boxer |
| 37 | +``` |
| 38 | + |
| 39 | +## Usage Example |
| 40 | + |
| 41 | +A sample usage file is available at `examples/boxer-style.php`. You can run it with: |
| 42 | + |
| 43 | +```bash |
| 44 | +php examples/boxer-style.php |
| 45 | +``` |
| 46 | + |
| 47 | +This example demonstrates: |
| 48 | + |
| 49 | +- Block output with various styles |
| 50 | +- Interactive questions |
| 51 | +- Banners and progress bars |
| 52 | + |
| 53 | +## Quick Start with DDEV (optional) |
| 54 | + |
| 55 | +For quick experimentation, the package includes a minimal `.ddev/` config. If you have [DDEV](https://ddev.com/) installed: |
| 56 | + |
| 57 | +```bash |
| 58 | +ddev start |
| 59 | +ddev php examples/boxer-style.php |
| 60 | +``` |
| 61 | + |
| 62 | +No need to configure PHP or Composer locally — it's ready to run in seconds. |
| 63 | + |
| 64 | +### Contributors Welcome! |
| 65 | + |
| 66 | +### This project is `contributor-friendly`! |
| 67 | + |
| 68 | +Boxer is currently in **ALPHA** stage. Your feedback and contributions are valuable before the first stable release. |
| 69 | + |
| 70 | +If you're a: |
| 71 | + |
| 72 | +- Developer |
| 73 | +- CLI tools maintainer |
| 74 | +- UX-minded engineer |
| 75 | +- Tester |
| 76 | +- Technical writer |
| 77 | +- Visionary |
| 78 | + |
| 79 | +...we’d love to hear from you. Pull requests, issues, and suggestions are all welcome! |
| 80 | + |
| 81 | +## License |
| 82 | + |
| 83 | +This package is open-sourced under the MIT license. |
| 84 | +See the [LICENSE](LICENSE) file for details. |
| 85 | + |
| 86 | +© Copyright 2025 Marcus `biesior` Biesioroff and contributors. |
0 commit comments