PHP code example of alexthegull / test_binary_tree_db
1. Go to this page and download the library: Download alexthegull/test_binary_tree_db 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/ */
alexthegull / test_binary_tree_db example snippets
// Require composer autoloader
sticAnalyser\Controller;
use CleantalkSP\Common\Scanner\HeuristicAnalyser\Structures\FileInfo;
// MyModel class need to be extended \CleantalkSP\Common\Scanner\HeuristicAnalyser\Model\Model
$my_model = new myMoodel();
// Instantiate the scanner module
$heuristic_scanner = new Controller($my_model);
// Prepare files information
$file_to_check = new FileInfo(
'name_of_the_file.php',
'full_hash'
);
// $res will contain the scanning result
$res = $heuristic_scanner->scanFile($file_to_check);