1. Go to this page and download the library: Download infocyph/phpprobe 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/ */
infocyph / phpprobe example snippets
use Infocyph\PHPProbe\CommentChecker;
use Infocyph\PHPProbe\DuplicateChecker;
use Infocyph\PHPProbe\Graph\CodeGraphExtractor;
use Infocyph\PHPProbe\ReferenceChecker;
use Infocyph\PHPProbe\SyntaxChecker;
$syntaxExit = (new SyntaxChecker())->run(['--format=json', 'src']);
$referenceExit = (new ReferenceChecker())->run(['--format=json', 'src']);
$duplicateExit = (new DuplicateChecker())->run(['--mode=gate', 'src']);
$commentExit = (new CommentChecker())->run(['--fail-on=warning', 'src']);
$graph = (new CodeGraphExtractor())->extract(['/project/src/Service.php'], '/project');