1. Go to this page and download the library: Download doganoo/php-algorithms 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/ */
doganoo / php-algorithms example snippets
use doganoo\PHPAlgorithms\Datastructure\Graph\Tree\BinaryTree;
$binaryTree = new BinaryTree();
$binaryTree->insertValue(50);
$binaryTree->insertValue(25);
$binaryTree->insertValue(75);
$binaryTree->insertValue(10);
$binaryTree->insertValue(100);
echo json_encode($binaryTree);