2017 © Pedro Peláez
 

library display-table

Display tables in text format

image

mmarica/display-table

Display tables in text format

  • Sunday, January 22, 2017
  • by mmarica
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,796 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 55 % Grown

The README.md

+=========+========+=======+=========+
| Console | Tables | Made  |  Easy   |
+=========+========+=======+=========+

Display tables

Latest Stable Version Software License Build Status codecov.io, (*1)

A simple PHP Library for generating tables in text format, useful for writing summaries in log or console., (*2)

Table of Contents

Installation

The easiest way to install is via composer:, (*3)

$ composer require mmarica/display-table

Requirements

The following versions of PHP are supported:, (*4)

  • PHP 5.6
  • PHP 7.0
  • PHP 7.1

Documentation

Example

Printing a text table is as simple as this:, (*5)

<?php
require_once dirname(__FILE__) . '/vendor/autoload.php';

use Mmarica\DisplayTable;

print DisplayTable::create()
    ->headerRow(['#', 'Person', 'Hobbies'])
    ->dataRows([
        ['1', 'Mihai', 'Cycling, Gaming, Programming'],
        ['2', 'Chewbacca', 'Growling, hibernating'],
        ['3', 'Philip J. Fry', 'Time traveling, eating anchovies'],
    ])
    ->toText()->generate();
.---.---------------.----------------------------------.
| # |    Person     |             Hobbies              |
:---+---------------+----------------------------------:
| 1 | Mihai         | Cycling, Gaming, Programming     |
| 2 | Chewbacca     | Growling, hibernating            |
| 3 | Philip J. Fry | Time traveling, eating anchovies |
'---'---------------'----------------------------------'

The Versions

22/01 2017

dev-master

9999999-dev

Display tables in text format

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

console table text table terminal table

22/01 2017

1.0.0

1.0.0.0

Display tables in text format

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

console table text table terminal table

18/01 2017

0.1.8

0.1.8.0

Display tables in text format

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

18/01 2017

0.1.7

0.1.7.0

Display tables in text format

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

17/01 2017

0.1.6

0.1.6.0

Display tables in ASCII format

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

12/01 2017

0.1.5

0.1.5.0

Display tables in ASCII format

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

11/01 2017

0.1.4

0.1.4.0

Display tables in ASCII format

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

09/01 2017

0.1.3

0.1.3.0

Display tables in ASCII format

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

06/01 2017

0.1.2

0.1.2.0

Display tables in ASCII format

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

04/01 2017

0.1.1

0.1.1.0

Display tables in ASCII format

  Sources   Download

The Requires

  • php >=5.3.0

 

04/01 2017

0.1.0

0.1.0.0

Display tables in ASCII format

  Sources   Download

The Requires

  • php >=5.3.0