Migrate filp/whoops to TypeScript

B Production-ready · version 2.18.4

filp/whoops 2.18.4 is a PHP package released under the MIT license and requires PHP ^7.1 || ^8.0. Pext migrates it to TypeScript; on Node.js, 111 of 127 PHPUnit tests pass (87.4%), with 3 failures, 13 errors and 1 skipped. It depends on 1 tracked package (weakest tier: Converted), and 3 tracked packages depend on it.

php error handling for cool kids

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

PHPUnit results on Node.js

87.4% of 127 tests passing (111 passed, 3 failed, 13 errors, 1 skipped). Verified 2026-10-21.

Where tests fail

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

Test classFailing tests
PlainTextHandlerTest8
RunTest3
XmlResponseHandlerTest3
FrameTest1
MiscTest1

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.1 || ^8.0
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

Upstream

Version
2.18.4
License
MIT
Homepage
https://filp.github.io/whoops/
Keywords
library, error, handling, exception, whoops, throwable

Migrating a codebase that uses filp/whoops?

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