承接 mmarica/display-table 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mmarica/display-table

最新稳定版本:1.0.0

Composer 安装命令:

composer require mmarica/display-table

包简介

Display tables in text format

README 文档

README

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

Display tables

Latest Stable Version Software License Build Status codecov.io

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

Table of Contents

Installation

The easiest way to install is via composer:

$ composer require mmarica/display-table

Requirements

The following versions of PHP are supported:

  • PHP 5.6
  • PHP 7.0
  • PHP 7.1

Documentation

Example

Printing a text table is as simple as this:

<?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 |
'---'---------------'----------------------------------'

统计信息

  • 总下载量: 72.41k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 1
  • 依赖项目数: 3
  • 推荐数: 0

GitHub 信息

  • Stars: 9
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-01-04