antalaron/circular-reference-detect
最新稳定版本:v1.0.1
Composer 安装命令:
composer require antalaron/circular-reference-detect
包简介
Circular reference detector
README 文档
README
PHP library to detect reference circular references in array.
Installation
Open a command console, enter your project directory and execute the following command to download the latest stable version of this library:
$ composer require antalaron/circular-reference-detect
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Usage
Find a circular reference in an array:
require __DIR__.'/vendor/autoload.php'; use Antalaron\Component\CircularReferenceDetect\CircularReferenceDetect; $a = [ 'a' => ['b'], 'b' => ['c'], 'c' => ['a'], ]; $detector = new CircularReferenceDetect(); $detector->hasCircularReference($a);
Documentation
License
This library is under MIT License.
统计信息
- 总下载量: 65.85k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-04-04