PHP code example of tu6ge / element-tree
1. Go to this page and download the library: Download tu6ge/element-tree 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/ */
tu6ge / element-tree example snippets
$tree = new \ElementTree\Tree();
$rs = $tree->get(__DIR__);
$json = json_encode($rs);