Skip to content

feat: absorb initphp/cli-table; document table rendering#1

Merged
muhammetsafak merged 1 commit into
mainfrom
2.x
May 24, 2026
Merged

feat: absorb initphp/cli-table; document table rendering#1
muhammetsafak merged 1 commit into
mainfrom
2.x

Conversation

@muhammetsafak
Copy link
Copy Markdown
Member

The Console package's Utils/Table has been structurally identical to
the standalone initphp/cli-table package for some time. Formalise the
consolidation:

  • Declare composer 'replace' for initphp/cli-table so the deprecated package is not installed alongside this one.
  • Add aliases.php with a class_alias keeping \InitPHP\CLITable\Table resolvable for transitive consumers.
  • Document the table renderer in the README and add a migration section for users coming from initphp/cli-table.

Summary

Type of change

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • ✨ New feature (non-breaking change that adds functionality)
  • 💥 Breaking change (fix or feature that changes existing behaviour in an incompatible way)
  • 📖 Documentation update
  • 🔧 Refactor / internal change (no behaviour change)
  • ✅ Tests only
  • 🚀 CI / build / tooling

Linked issues

How was this tested?

Breaking changes

Checklist

  • Code follows PSR-12 and the project's existing style (PHP-CS-Fixer if available, no warnings)
  • declare(strict_types=1); is present in any new PHP files in src/
  • Public methods have proper type declarations (parameters and return types)
  • Tests cover the change — added new tests or updated existing ones (N/A for docs-only PRs)
  • PHPStan passes locally at the level configured in the package
  • PHPUnit passes locally (composer test or vendor/bin/phpunit)
  • Commit messages follow Conventional Commits
  • I have read and agree to the Code of Conduct

  The Console package's Utils/Table has been structurally identical to
  the standalone initphp/cli-table package for some time. Formalise the
  consolidation:

  - Declare composer 'replace' for initphp/cli-table so the deprecated
    package is not installed alongside this one.
  - Add aliases.php with a class_alias keeping \InitPHP\CLITable\Table
    resolvable for transitive consumers.
  - Document the table renderer in the README and add a migration
    section for users coming from initphp/cli-table.
@muhammetsafak muhammetsafak merged commit 0fc6c7c into main May 24, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant