Migrate consolidation/annotated-command to TypeScript

D Converted · version 4.10.5

consolidation/annotated-command 4.10.5 is a PHP package released under the MIT license and requires PHP >=7.1.3. Pext migrates it to TypeScript; on Node.js, 6 of 64 PHPUnit tests pass (9.3%), with 15 failures and 43 errors. It depends on 5 tracked packages (weakest tier: Converted), and 2 tracked packages depend on it.

Initialize Symfony Console commands from annotated command class methods.

ConvertsYes
Runs on Node.jsYes
Runs on BunNot yet measured
TypeScript typesNot emitted

PHPUnit results on Node.js

9.3% of 64 tests passing (6 passed, 15 failed, 43 errors, 0 skipped). Verified 2026-10-21.

Where tests fail

The 5 test classes with the most failing tests on Node.js:

Test classFailing tests
AnnotatedCommandFactoryTest42
AttributesCommandFactoryTest7
FullStackTest4
CommandInfoTest2
AnnotatedCommandTest1

The remaining 2 failing tests are spread across other classes.

What “Converted” means

Converts cleanly to TypeScript. Test verification is pending or still climbing.

Requirements

PHP
>=7.1.3
Extensions
None declared

As declared in the package's Composer metadata. Pext provides PHP extensions through its runtime modules.

Dependencies

Weakest dependency: D Converted

Used by

More from consolidation

Upstream

Version
4.10.5
License
MIT

Migrating a codebase that uses consolidation/annotated-command?

See how Pext migrates a real PHP application, its Composer dependencies and its test suite to TypeScript.