Skip to content
This repository was archived by the owner on May 24, 2026. It is now read-only.

Commit cbb5187

Browse files
committed
chore: deprecate — merged into initphp/console:^2.1
1 parent ef577a4 commit cbb5187

2 files changed

Lines changed: 33 additions & 1 deletion

File tree

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
11
# InitPHP CLI Table Generator
22

3+
> ## ⚠️ DEPRECATED — Use [`initphp/console`](https://github.com/InitPHP/Console) instead
4+
>
5+
> As part of the InitPHP package consolidation, **this package has been merged into [`initphp/console`](https://github.com/InitPHP/Console) starting with version 2.1.** The consolidated package ships an identical table renderer under `\InitPHP\Console\Utils\Table` plus the rest of the Console toolkit (Application, Command, Input, Output, Question).
6+
>
7+
> This repository is kept read-only for historical reference. **No further updates will be released.**
8+
>
9+
> ### Migration
10+
>
11+
> 1. Update your `composer.json`:
12+
>
13+
> ```diff
14+
> - "initphp/cli-table": "^1.0",
15+
> + "initphp/console": "^2.1"
16+
> ```
17+
>
18+
> 2. Your existing `use InitPHP\CLITable\Table;` imports keep working — `initphp/console:^2.1` ships a `class_alias` that aliases the old FQCN to the canonical `\InitPHP\Console\Utils\Table`. **No source changes required.**
19+
>
20+
> 3. When you next touch the code, prefer the new canonical namespace:
21+
>
22+
> ```php
23+
> // Before
24+
> use InitPHP\CLITable\Table;
25+
>
26+
> // After
27+
> use InitPHP\Console\Utils\Table;
28+
> ```
29+
>
30+
> Composer declares a `replace` from `initphp/console:^2.1` to this package, so the two will not be installed side-by-side.
31+
32+
---
33+
334
This library allows you to create nice looking tables in the CLI interface with PHP.
435
536
_**Note** : Not required, but the **MB_String** extension is highly recommended._

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"name": "initphp/cli-table",
3-
"description": "PHP CLI Table Generator",
3+
"description": "PHP CLI Table Generator (DEPRECATED — merged into initphp/console:^2.1)",
44
"type": "library",
55
"license": "MIT",
6+
"abandoned": "initphp/console",
67
"autoload": {
78
"psr-4": {
89
"InitPHP\\CLITable\\": "src/"

0 commit comments

Comments
 (0)