Download the PHP package lukascivil/treewalker without Composer
On this page you can find all versions of the php package lukascivil/treewalker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download lukascivil/treewalker
More information about lukascivil/treewalker
Files in lukascivil/treewalker
Download lukascivil/treewalker
More information about lukascivil/treewalker
Files in lukascivil/treewalker
Vendor lukascivil
Package treewalker
Short Description TreeWalker is a simple and small Library that will help you to work faster with manipulation of structures in PHP
License
Package treewalker
Short Description TreeWalker is a simple and small Library that will help you to work faster with manipulation of structures in PHP
License
Please rate this library. Is it a good library?
Informations about the package treewalker
TreeWalker
TreeWalker is a simple and small Library that will help you to work faster with manipulation of structures in PHP
- getdiff() - Get json difference
replaceValues() - Edit json value (Recursively)- walker() - Edit json (Recursively)
- structMerge() - Joins two structures
- createDynamicallyObjects() - Create nested structure by Dynamic keys
- getDynamicallyValue() - Dynamically get a structure property
- setDynamicallyValue() - Dynamically access a structure property to set a value
structure = ["jsonstring", "object", "array"]
EXAMPLE - master
Prerequisites
- PHP >= 5.5
Installation
Using composer
Put the require statement for TreeWalker
in your composer.json
and install:
Manually
include the TreeWalker.php
Examples
Init:
$treewalker = new TreeWalker(array(
"debug"=>true, //true => return the execution time, false => not
"returntype"=>"jsonstring") //Returntype = ["obj","jsonstring","array"]
);
Methods:
Test
Additional context
If you need the JS version to also compare objects, you can use this (JsonDifference) lib which will have the same result on the client side.
License
The MIT License (MIT)
Copyright (c) [2016] [LUCAS CORDEIRO DA SILVA]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
All versions of treewalker with dependencies
PHP Build Version
Package Version
No informations.
The package lukascivil/treewalker contains the following files
Loading the files please wait ....