amylian/deepclone
Composer 安装命令:
composer require amylian/deepclone
包简介
Provides Deep Cloning (Copying) of objects and arrays
README 文档
README
Copyright (c) 2018, Andreas Prucha (Abexto - Helicon Software Development) andreas.prucha@gmail.com
Status
| Version | Travis Result |
|---|---|
| V 0.1.0 | |
| Master |
Function Summary
DeepClone is a package providing deep cloning (copying) of object instances in PHP.
Contrary to PHP's own clone functionality it does not rely on the class implementing it's cloning in the magic function__clone().
Installation
To install this library, run the command below and you will get the latest version
composer require amylian/deepclone --dev
Basic Usage
DeepClone can be configured to handle special cases (e.g. instances of classes to be excluded from cloning in the instance tree), but in most cases this is not necessary. The straight forward use of DeepClone is:
$clonedObject = \Amylian\DeepClone\DeepClone::copy($originalObject);
Links
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2019-05-13