Skip to content

Commit 2c867d2

Browse files
committed
Rebrand as janklan/deepcopy
1 parent 1ec4143 commit 2c867d2

File tree

3 files changed

+18
-7
lines changed

3 files changed

+18
-7
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, u
44
patreon: # Replace with a single Patreon username
55
open_collective: # Replace with a single Open Collective username
66
ko_fi: # Replace with a single Ko-fi username
7-
tidelift: "packagist/myclabs/deep-copy"
7+
tidelift: # Replace with a Tidelif URL
88
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
99
liberapay: # Replace with a single Liberapay username
1010
issuehunt: # Replace with a single IssueHunt username

README.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
DeepCopy helps you create deep copies (clones) of your objects. It is designed to handle cycles in the association graph.
44

5-
[![Total Downloads](https://poser.pugx.org/myclabs/deep-copy/downloads.svg)](https://packagist.org/packages/myclabs/deep-copy)
6-
[![Integrate](https://github.com/myclabs/DeepCopy/actions/workflows/ci.yaml/badge.svg?branch=1.x)](https://github.com/myclabs/DeepCopy/actions/workflows/ci.yaml)
5+
[![Total Downloads](https://poser.pugx.org/janklan/deepcopy/downloads.svg)](https://packagist.org/packages/myclabs/deep-copy)
6+
[![Integrate](https://github.com/janklan/deepcopy/actions/workflows/ci.yaml/badge.svg?branch=1.x)](https://github.com/janklan/deepcopy/actions/workflows/ci.yaml)
77

88
## Table of Contents
99

@@ -36,7 +36,7 @@ DeepCopy helps you create deep copies (clones) of your objects. It is designed t
3636
Install with Composer:
3737

3838
```
39-
composer require myclabs/deep-copy
39+
composer require janklan/deepcopy
4040
```
4141

4242
Use it:
@@ -422,6 +422,17 @@ Running the tests is simple:
422422
vendor/bin/phpunit
423423
```
424424

425-
### Support
425+
## Acknowledgement
426426

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.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "myclabs/deep-copy",
2+
"name": "janklan/deepcopy",
33
"description": "Create deep copies (clones) of your objects",
44
"license": "MIT",
55
"type": "library",

0 commit comments

Comments
 (0)