1. Go to this page and download the library: Download x-o-r/walker library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
x-o-r / walker example snippets
(new Walker)
->from(
(object)["Foo" =>
(object)["Bar" => "Value"]
])
->with('Foo->Bar')
->asString();
/* Will return 'Value' */
(new Walker)
->fromJson('{
"Foo": {
"Bar": "Value"
}
}')
->with('Foo->Bar')
->asString();
/* Will return 'Value' */