https://github.com/programie/phptable
A library to display data in a table
https://github.com/programie/phptable
console php-library symfony table
Last synced: 3 months ago
JSON representation
A library to display data in a table
- Host: GitHub
- URL: https://github.com/programie/phptable
- Owner: Programie
- License: mit
- Created: 2017-01-03T17:31:33.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-10-03T13:55:31.000Z (over 2 years ago)
- Last Synced: 2025-10-10T12:49:14.349Z (3 months ago)
- Topics: console, php-library, symfony, table
- Language: PHP
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# PHP Table
This library provides a simple API to display data in a table. It heavily depends on the [Symfony Console component](https://symfony.com/doc/current/components/console.html) to output the data to the console or any other output.
One of the main features is the ability to define the order of the table headers. After that, the order of the row columns is defined by keys. It does not matter in which order you add the fields to the rows, the header row will always define the order.
[](https://packagist.org/packages/programie/phptable)
[](https://packagist.org/packages/programie/phptable)
[](https://packagist.org/packages/programie/phptable)
[](https://packagist.org/packages/programie/phptable)
## Installation
Add the composer package "programie/phptable" to the required packages of your composer.json:
```bash
composer require programie/phptable
```