PHP code example of bernardosecades / packagist-security-checker
1. Go to this page and download the library: Download bernardosecades/packagist-security-checker 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/ */
bernardosecades / packagist-security-checker example snippets
use BernardoSecades\Packagist\SecurityChecker\PackagistSecurityChecker;
use BernardoSecades\Packagist\SecurityChecker\Command\PackagistSecurityCheckerCommand;
$app = new Application();
$app->add(new PackagistSecurityCheckerCommand(new PackagistSecurityChecker()));
use BernardoSecades\Packagist\SecurityChecker\PackagistSecurityChecker;
$ch = new PackagistSecurityChecker();
$reportPackages = $ch->check('/path/composer.lock');