PHPackages                             changwei/array2text - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. changwei/array2text

ActiveLibrary[CLI &amp; Console](/categories/cli)

changwei/array2text
===================

this is a php script, it can convert a php associative array to a text

1.0.0(8y ago)3232Apache-2.0PHPPHP &gt;=5.5.6

Since Jun 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/cw1997/array2text)[ Packagist](https://packagist.org/packages/changwei/array2text)[ RSS](/packages/changwei-array2text/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

array2text
==========

[](#array2text)

convert a php associative array to a text

一个将PHP关联数组转换为文本形式表格的小工具

example
=======

[](#example)

[![](https://github.com/cw1997/array2text/raw/master/array2text.png?raw=true)](https://github.com/cw1997/array2text/blob/master/array2text.png?raw=true)

input:

```
$arr[0]['id'] = 1;
$arr[0]['title'] = '一';
$arr[0]['author'] = 'h';
$arr[1]['id'] = 1997;
$arr[1]['title'] = '一个数组转文本的小工具';
$arr[1]['author'] = '昌维changwei';
$arr[2]['id'] = 333; // 13
$arr[2]['title'] = '三三三'; // 12
$arr[2]['author'] = 'hhh'; // 10

```

output:

```
Administrator@changwei MINGW64 /d/www/array2text/example
$ php example.php
+------+------------------------+--------------+
| id   | title                  | author       |
+------+------------------------+--------------+
| 1    | 一                     | h            |
+------+------------------------+--------------+
| 1997 | 一个数组转文本的小工具 | 昌维changwei |
+------+------------------------+--------------+
| 333  | 三三三                 | hhh          |
+------+------------------------+--------------+

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3261d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1664dbce5fee361b47ed1afa2a3dc3763d60efb3d8cb60c4588649973a3a31a7?d=identicon)[changwei](/maintainers/changwei)

---

Top Contributors

[![cw1997](https://avatars.githubusercontent.com/u/11588555?v=4)](https://github.com/cw1997 "cw1997 (12 commits)")

---

Tags

arrayconsolephptextarrayconverttextutil

### Embed Badge

![Health badge](/badges/changwei-array2text/health.svg)

```
[![Health](https://phpackages.com/badges/changwei-array2text/health.svg)](https://phpackages.com/packages/changwei-array2text)
```

###  Alternatives

[spatie/array-to-xml

Convert an array to xml

1.2k57.8M225](/packages/spatie-array-to-xml)[mathieuviossat/arraytotexttable

Display arrays in terminal

777.4M5](/packages/mathieuviossat-arraytotexttable)[jasny/twig-extensions

A set of useful Twig filters

10710.2M8](/packages/jasny-twig-extensions)[mtownsend/xml-to-array

Easily convert valid xml to a php array.

1163.5M21](/packages/mtownsend-xml-to-array)[pbergman/tree-helper

A symfony console helper to print a tree

24469.4k4](/packages/pbergman-tree-helper)[aspose-cloud/aspose-words-cloud

Open, generate, edit, split, merge, compare and convert Word documents. Integrate Cloud API into your solutions to manipulate documents. Convert PDF to Word (DOC, DOCX, ODT, RTF and HTML) and in the opposite direction.

32157.4k](/packages/aspose-cloud-aspose-words-cloud)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
