NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #40 most downloaded on Packagist
Create deep copies (clones) of your objects
Latest stable
1.14.0
Last release 3 months ago
11 Aug 2026
Release timing varies
gaps range from 4 weeks to 1.3 years
Nearly every release is documented
notes for 38 of 39 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
39 releases · first in 2013
Drag across the ruler to compare, or tap a release to open it.
PHP 8.6 is supported and PHP 7.x support has been dropped (8.0 or greater is required now).
PHP 8.6 is supported and PHP 7.x support has been dropped (8.0 or greater is required now).
spl_object_hash with spl_object_id by @mnapoli in #210WeakMap by @mnapoli in #211Full Changelog: 1.13.4...1.14.0
Do not call Reflection*::setAccessible() in PHP >= 8.1 by @W0rma in #207
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Change TObject to mixed by @ruudk in #206
Add generic to DeepCopy::copy method by @ruudk in #205
Fix return types for Doctrine\Persistence\Proxy implementations by @SpazzMarticus in #203
Full Changelog: 1.13.0...1.13.1
Run tests on PHP 8.4 by @alamirault in #198
Full Changelog: 1.12.1...1.13.0
bug: #196 Introduce a custom DatePeriodFilter that safely copies DatePeriod objects without modifying their readonly properties. by @michalananapps in
Full Changelog: 1.12.0...1.12.1
Ignore readonly properties by @llupa in #195
readonly properties by @llupa in #195Full Changelog: 1.11.1...1.12.0
Allow applying further filters after DoctrineProxyFilter by @fsevestre in #175
Full Changelog: 1.11.0...1.11.1
Support PHP 8.1 enums by @Slamdunk in #171
Allow doctrine/common:v3 by @Slamdunk in https://github.com/myclabs/DeepCopy/pull/172
doctrine/common:v3 by @Slamdunk in https://github.com/myclabs/DeepCopy/pull/172Full Changelog: https://github.com/myclabs/DeepCopy/compare/1.10.2...1.10.3
#161 Add isInitialized check on PropertyTypeMatcher for PHP 7.4
#161 Add isInitialized check on PropertyTypeMatcher for PHP 7.4
Fix copying objects extending ArrayObject
Exclude docs from being exported #151
Fix deep copying of ArrayObject in PHP 7.4
#143, #144: Add support for PHP 7.4's typed properties (they can be in an "uninitialized" state), by @SlvrEagle23
#143, #144: Add support for PHP 7.4's typed properties (they can be in an "uninitialized" state), by @SlvrEagle23
Backport changes to gitattributes
Backport changes to gitattributes
Fix the branch pointed; 1.9.0 was incorrectly targetting the 2.x branch instead of 1.x
### Features - Add filter prepend method
### Bugfixes * Declare deep_copy only once
Bump dependencies and update Travis configuration
Fix copying of DateTimeZone objects
- #61 #64 Un-deprecated PropertyTypeMatcher
@malc0mn implemented #18 in #59: new filter for handling Doctrine Proxies \o/
- #49 Properly clone elements in SplDoublyLinkedList - #51 Remove usage of array_merge
SplDoublyLinkedList#50 Revert change that caused a BC break + add test
#50 Revert change that caused a BC break + add test
- #46 New option to use native clone behavior, i.e. call __clone(), when that method exists - #44 and #45: performance improvements - #48: documentati
__clone(), when that method existsFix #38 (in #43 and #42): "Notice: Undefined property: DateTime::$date"
Fix #38 (in #43 and #42): "Notice: Undefined property: DateTime::$date"
- Bugfix: #29 - Documentation udpate: #32
You can now add "type matchers" that will apply to any object that matches a type. The object doesn't have to be in a property directly, it can be in
You can now add "type matchers" that will apply to any object that matches a type. The object doesn't have to be in a property directly, it can be in an array for example.
- #17 - #23 Support private properties of parent classes
Fixed the file permissions
Fixed the file permissions (#14)
- #12 + 96fbdc0763 New filter ReplaceFilter to replace the value of a property when cloning
ReplaceFilter to replace the value of a property when cloning- #7 Uncloneable exception instead of a generic exception
- #5 Doctrine empty collection filter
- #2 Option to silently skip uncloneable items
Fixed #1: support for dynamic properties
Fixed #1: support for dynamic properties
Nothing published for this version
One column per quarter.