myclabs/DeepCopy
Create deep copies (clones) of your objects observed · 2026-08-28
Health v2 · maintenance only
93/100
- Activity 97
- Release rhythm 85
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 71.0
- age_days: 4790
- days_rel: 22
- days_push: 21
- n_releases_24m: 7
Adoption not part of the score
8886 stars · 109 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A PHP library that creates deep copies (clones) of objects, recursively copying all referenced objects while handling cycles in the association graph. It offers configurable matchers and filters to customize which properties are copied and how.
Use cases
- deep clone a php object graph
- copy objects with circular references
- clone doctrine entities safely
- create deep copies without writing __clone methods
- customize which properties get copied during cloning
- snapshot object state for testing
When to choose
- you need deep copies of complex object graphs in PHP
- your object graph contains cycles that break naive cloning
- you use Doctrine and need to clone entities with collections
- you want configurable copy behavior via matchers and filters
When to avoid
- you only need shallow copies (plain clone suffices)
- you are not working in PHP
- your objects hold uncloneable resources like open connections
Facets
library · maturity stable
serialization developer-tools programming-languages php deep-copy object-cloning object-graph cycles
1 source
- readme: https://github.com/myclabs/DeepCopy · fetched 2026-08-28 · dec31bd710d8
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| myclabs/DeepCopy | main | 93 |
For agents
markdown · JSON · MCP: product_card(name="myclabs/DeepCopy")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem