cleantalk / spbct-heuristic-analyser
CleanTalk SPBCT Heuristic Analyser classes
Package info
github.com/CleanTalk/_spbct-heuristic-analyser
Type:cleantalk-spbct-scanner
pkg:composer/cleantalk/spbct-heuristic-analyser
1.4.50
2026-04-13 11:36 UTC
Requires
Requires (Dev)
- phpcompatibility/php-compatibility: ^9.3
- phpunit/phpunit: ^8.5.52
- squizlabs/php_codesniffer: 3.*
- vimeo/psalm: ^4.8
- yoast/phpunit-polyfills: ^1.0
This package is auto-updated.
Last update: 2026-06-13 11:58:24 UTC
README
Install
composer require cleantalk/spbct-heuristic-analyser
Using
<?php // Require composer autoloader require_once 'vendor/autoload.php'; use CleantalkSP\Common\Scanner\HeuristicAnalyser\Controller; use CleantalkSP\Common\Scanner\HeuristicAnalyser\Structures\FileInfo; $file_path = '/bad/index.php'; $root_dir_patn = __DIR__; // Instantiate the scanner module $heuristic_scanner = new Controller(); // Prepare files information $file_to_check = new FileInfo($file_path); $res = $heuristic_scanner->scanFile($file_to_check, $root_dir_patn); var_dump($res); // $res will contain the scanning result var_dump($heuristic_scanner->final_code); // $final_code will contain the de-obfuscated code