Migrate corneltek/getoptionkit to TypeScript

B Production-ready · version 2.7.3

corneltek/getoptionkit 2.7.3 is a PHP package released under the MIT license and requires PHP >=7.2.0. Pext migrates it to TypeScript; on Node.js, 104 of 107 PHPUnit tests pass (97.1%), with no failures and 3 errors. It has no tracked dependencies, and 1 tracked package depends on it.

Powerful command-line option toolkit

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

PHPUnit results on Node.js

97.1% of 107 tests passing (104 passed, 0 failed, 3 errors, 0 skipped). Verified 2026-10-21.

Where tests fail

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

Test classFailing tests
ConsoleOptionPrinterTest1
ContinuousOptionParserTest1
OptionParserTest1

What “Production-ready” means

Passes at least 80% of its original tests and behaves like the PHP original on the paths that matter. Remaining gaps are tracked.

Requirements

PHP
>=7.2.0
Extensions
None declared

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

Dependencies

No tracked dependencies.

Used by

Upstream

Version
2.7.3
License
MIT
Homepage
http://github.com/c9s/GetOptionKit

Migrating a codebase that uses corneltek/getoptionkit?

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