PHP code example of bypassflow / value-kit
1. Go to this page and download the library: Download bypassflow/value-kit 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/ */
bypassflow / value-kit example snippets
use bypassflow\ValueKit\Access\ArrayPathAccessor;
$name = ArrayPathAccessor::get(
['payload' => ['user' => ['name' => 'alice']]],
['payload', 'user', 'name'],
);
use bypassflow\ValueKit\Structure\KeyFlattener;
$flat = KeyFlattener::dot([
'payload' => ['user' => ['name' => 'alice']],
]);