Migrate phar-io/manifest to TypeScript

B Production-ready · version 2.0.4

phar-io/manifest 2.0.4 is a PHP package released under the BSD-3-Clause license and requires PHP ^7.2 || ^8.0. Pext migrates it to TypeScript; on Node.js, 115 of 138 PHPUnit tests pass (83.3%), with 2 failures and 21 errors. It depends on 1 tracked package (weakest tier: Converted), and 1 tracked package depends on it.

Component for reading phar.io manifest information from a PHP Archive (PHAR)

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

PHPUnit results on Node.js

83.3% of 138 tests passing (115 passed, 2 failed, 21 errors, 0 skipped). Verified 2026-10-26.

Where tests fail

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

Test classFailing tests
ExtensionTest10
CopyrightElementTest2
ManifestSerializerTest2
PhpElementTest2
BundledComponentCollectionTest1

The remaining 6 failing tests are spread across other classes.

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 || ^8.0
Extensions
domlibxmlpharxmlwriter

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 phar-io

Upstream

Version
2.0.4
License
BSD-3-Clause

Migrating a codebase that uses phar-io/manifest?

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