PHP code example of fernleafsystems / apiwrappers-wpvulndb
1. Go to this page and download the library: Download fernleafsystems/apiwrappers-wpvulndb 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/ */
fernleafsystems / apiwrappers-wpvulndb example snippets
use FernleafSystems\ApiWrappers\WpVulnDb\WPScan;
$conn = new WPScan\Connection();
$conn->api_key = 'abc123'; // Get this when you register
$pluginVuln = ( new WPScan\Plugins\Retrieve() )
->setConnection( $conn )
->filterByVersion( '5.1' )
->filterBySlug( 'wp-simple-firewall' )
->retrieve();