Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Mar 31, 2024 via composer

myclabs/deep-copy 1.11.1

Create deep copies (clones) of your objects
Package summary
Share
0
issues
1
license
1
MIT
Package created
22 Jul 2013
Version published
8 Mar 2023
Maintainers
2
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
myclabs/deep-copy@1.11.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of myclabs/deep-copy 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does myclabs/deep-copy do?

The "myclabs/deep-copy" PHP package provides a means to create deep copies (clones) of your objects. Unlike a simple copy, a deep copy is a complete standalone replica of an object, including nested objects and arrays that it may contain. This package is designed with the ability to handle cycles in the association graph, effectively avoiding issues of infinite recursion during copy operations.

How do you use myclabs/deep-copy?

To use "myclabs/deep-copy" in your PHP project, you first need to install the package using Composer. This can be done with the following command:

composer require myclabs/deep-copy

Once installed, you can include the DeepCopy class in your PHP code and then use it to copy objects. Here is a basic example of how to use it:

use DeepCopy\DeepCopy;

// Create a DeepCopy instance
$copier = new DeepCopy();

// Use the copy() method to create a deep copy
$myCopy = $copier->copy($myObject);

This package offers additional functionality allowing customization of the copy process using filters and matchers. This provides control over specific property handling during the copy operation.

Where are the myclabs/deep-copy docs?

All instructions and detailed usage information for the "myclabs/deep-copy" package are provided within its README, located in the GitHub repository at: https://github.com/myclabs/DeepCopy.git. The comprehensive document contains examples and further details on how to customize your copying operations, information about handling edge cases, and how to contribute to the package's development.