Migrate myclabs/deep-copy to TypeScript

B Production-ready · version 1.13.4

myclabs/deep-copy 1.13.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, 78 of 82 PHPUnit tests pass (95.1%), with no failures and 4 errors. It has no tracked dependencies, and 4 tracked packages depend on it.

Create deep copies (clones) of your objects

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

PHPUnit results on Node.js

95.1% of 82 tests passing (78 passed, 0 failed, 4 errors, 0 skipped). Verified 2026-10-26.

Where tests fail

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

Test classFailing tests
DeepCopyTest3
ArrayObjectFilterTest1

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

No tracked dependencies.

Used by

Upstream

Version
1.13.4
License
MIT
Keywords
clone, copy, duplicate, object, object graph

Migrating a codebase that uses myclabs/deep-copy?

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