Skip to content

Commit

Permalink
Rebrand as janklan/deepcopy
Browse files Browse the repository at this point in the history
  • Loading branch information
janklan committed Nov 3, 2023
1 parent 1ec4143 commit b748974
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
21 changes: 16 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

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

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

## Table of Contents

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

```
composer require myclabs/deep-copy
composer require janklan/deepcopy
```

Use it:
Expand Down Expand Up @@ -422,6 +422,17 @@ Running the tests is simple:
vendor/bin/phpunit
```

### Support
## Acknowledgement

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).
This is a fork of https://github.com/myclabs/DeepCopy/ - a massively popular library with millions downloads, which implies
inherent legacy issues: it needs to support old code. At some stage I needed this library more than it did and the [PR was
too heavy](https://github.com/myclabs/DeepCopy/pull/192) for timely consideration.

I decided to fork the project with a few objectives:

1. Drop older dependencies
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`.
3. Add functions that were missing - namely, the ability to automatically persist the cloned objects when cloning linked Doctrine objects
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.

Thanks @mnapoli for all your work.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "myclabs/deep-copy",
"name": "janklan/deepcopy",
"description": "Create deep copies (clones) of your objects",
"license": "MIT",
"type": "library",
Expand Down

0 comments on commit b748974

Please sign in to comment.