Download the PHP package ashleydawson/canonically-flatten-tree without Composer
On this page you can find all versions of the php package ashleydawson/canonically-flatten-tree. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ashleydawson/canonically-flatten-tree
More information about ashleydawson/canonically-flatten-tree
Files in ashleydawson/canonically-flatten-tree
Download ashleydawson/canonically-flatten-tree
More information about ashleydawson/canonically-flatten-tree
Files in ashleydawson/canonically-flatten-tree
Vendor ashleydawson
Package canonically-flatten-tree
Short Description Pure function to flatten a tree (n-dimensional array) into a canonicalised list array
License proprietary
Package canonically-flatten-tree
Short Description Pure function to flatten a tree (n-dimensional array) into a canonicalised list array
License proprietary
Please rate this library. Is it a good library?
Informations about the package canonically-flatten-tree
Canonically Flatten Tree
Pure PHP function to flatten an n-dimensional tree of scalars (represented as an array) into a single dimension list (also represented as an array).
TODO
- Benchmark various flattening algorithms, including
\RecursiveArrayIterator
, etc. - Technically I think it's a nested set we're operating on (sort of), so in v2 I'd propose changing the terminology to suit
Requirements
This function requires PHP >= 7.1
Installation
Installation via Composer:
Usage
Basic usage of the function is as follows:
Add type checking for scalars:
Test & Benchmark
Test with PHPUnit:
Benchmark with Blackfire:
There is an example benchmark report available.
All versions of canonically-flatten-tree with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1
The package ashleydawson/canonically-flatten-tree contains the following files
Loading the files please wait ....