PHP code example of ampersa / safebrowsing-laravel

1. Go to this page and download the library: Download ampersa/safebrowsing-laravel 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-laravel example snippets


'providers' => [
    ...
    Ampersa\SafeBrowsing\Laravel\SafeBrowsingServiceProvider::class,
    ...
];
...
'aliases' => [
    ...
    'SafeBrowsing' => Ampersa\SafeBrowsing\Laravel\Facade\SafeBrowsing::class,
    ...
];

use SafeBrowsing;
...
$result = SafeBrowsing::listed('http://ianfette.org/');
// Returns: (bool) true
bash
$ php artisan vendor:publish --provider="Ampersa\SafeBrowsing\Laravel\SafeBrowsingServiceProvider"