PHP code example of ampersa / safebrowsing
1. Go to this page and download the library: Download ampersa/safebrowsing 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/ */
ampersa / safebrowsing example snippets
use Ampersa\SafeBrowsing\SafeBrowsing;
...
$safebrowsing = new SafeBrowsing(API_KEY);
$result = $safebrowsing->listed('http://ianfette.org');
// Returns: (bool) true
$safebrowsing = new SafeBrowsing(API_KEY);
$result = $safebrowsing->listed('http://ianfette.org', true);
// Returns: (string) MALWARE