|
2 | 2 |
|
3 | 3 | DeepCopy helps you create deep copies (clones) of your objects. It is designed to handle cycles in the association graph.
|
4 | 4 |
|
5 |
| -[](https://packagist.org/packages/myclabs/deep-copy) |
6 |
| -[](https://github.com/myclabs/DeepCopy/actions/workflows/ci.yaml) |
| 5 | +[](https://packagist.org/packages/myclabs/deep-copy) |
| 6 | +[](https://github.com/janklan/deepcopy/actions/workflows/ci.yaml) |
7 | 7 |
|
8 | 8 | ## Table of Contents
|
9 | 9 |
|
@@ -36,7 +36,7 @@ DeepCopy helps you create deep copies (clones) of your objects. It is designed t
|
36 | 36 | Install with Composer:
|
37 | 37 |
|
38 | 38 | ```
|
39 |
| -composer require myclabs/deep-copy |
| 39 | +composer require janklan/deepcopy |
40 | 40 | ```
|
41 | 41 |
|
42 | 42 | Use it:
|
@@ -422,6 +422,17 @@ Running the tests is simple:
|
422 | 422 | vendor/bin/phpunit
|
423 | 423 | ```
|
424 | 424 |
|
425 |
| -### Support |
| 425 | +## Acknowledgement |
426 | 426 |
|
427 |
| -Get professional support via [the Tidelift Subscription](https://tidelift.com/subscription/pkg/packagist-myclabs-deep-copy?utm_source=packagist-myclabs-deep-copy&utm_medium=referral&utm_campaign=readme). |
| 427 | +This is a fork of https://github.com/myclabs/DeepCopy/ - a massively popular library with millions downloads, which implies |
| 428 | +inherent legacy issues: it needs to support old code. At some stage I needed this library more than it did and the [PR was |
| 429 | +too heavy](https://github.com/myclabs/DeepCopy/pull/192) for timely consideration. |
| 430 | + |
| 431 | +I decided to fork the project with a few objectives: |
| 432 | + |
| 433 | +1. Drop older dependencies |
| 434 | +2. Bring the code up a bit, PHP 8.2 and up. If you need to clone complex objects using older software, please refer to https://github.com/myclabs/DeepCopy/. This will be the last significant commit made on 1.x branch in this `janklan/deepcopy`. |
| 435 | +3. Add functions that were missing - namely, the ability to automatically persist the cloned objects when cloning linked Doctrine objects |
| 436 | +4. As a vague goal, tweaking how the filters work. The way they are split between `TypeFilter` and `(non-Type)Filter` + the fact one can be chained and the other can't, it simply didn't sit well with me. |
| 437 | + |
| 438 | +Thanks @mnapoli for all your work. |
0 commit comments