定制 marcin-orlowski/text-table 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

marcin-orlowski/text-table

最新稳定版本:2.8.1

Composer 安装命令:

composer require marcin-orlowski/text-table

包简介

Fast and flexible PHP library for text tables.

README 文档

README

..######.#####.##...##.######...######...#....#####..##....#####.. ....##...##.....##.##....##.......##....###...##..##.##....##..... ....##...##......###.....##.......##...##.##..##..##.##....##..... ....##...####.....#......##.......##..##...##.#####..##....####... ....##...##......###.....##.......##..#######.##..##.##....##..... ....##...##.....##.##....##.......##..##...##.##..##.##....##..... ....##...#####.##...##...##.......##..##...##.#####..#####.#####.. 

Fast and flexible PHP library for text tables.

Latest Stable Version Total Downloads License PHP Version Require

There's also a Python version of this library.

Features

  1. Production ready,
  2. Easy to use,
  3. No additional dependencies,
  4. Documented.

Usage examples

NOTE: For proper rendering in environments like web browsers, ensure you are using a monospace font or wrap the output in <pre> tags.

$table = new TextTable(['ID', 'NAME', 'SCORE']); $table->addRows([ [1, 'John', 12], [2, 'Tommy', 15], ]); echo $table->renderAsString();

would produce nice text table:

┌────┬───────┬───────┐ │ IDNAMESCORE │ ├────┼───────┼───────┤ │ 1 │ John │ 12 │ │ 2 │ Tommy │ 15 │ └────┴───────┴───────┘

Check docs for more usage examples.

License

  • Written and copyrighted ©2022-2025 by Marcin Orlowski <mail (#) marcinorlowski (.) com>
  • Text Table is open-sourced software licensed under the MIT license

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固