Package Data | |
---|---|
Maintainer Username: | ampersa |
Maintainer Contact: | contact@ampersa.co.uk (Ampersa Ltd) |
Package Create Date: | 2017-04-13 |
Package Last Update: | 2017-04-13 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-19 03:21:47 |
Package Statistics | |
---|---|
Total Downloads: | 1,951 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
A Laravel package wrapper for ampersa/safebrowsing.
Composer
$ composer require ampersa/safebrowsing-laravel
Include the Service Provider and Facade in your config/app.php
'providers' => [
...
Ampersa\SafeBrowsing\Laravel\SafeBrowsingServiceProvider::class,
...
];
...
'aliases' => [
...
'SafeBrowsing' => Ampersa\SafeBrowsing\Laravel\Facade\SafeBrowsing::class,
...
];
Now publish the configuration
$ php artisan vendor:publish --provider="Ampersa\SafeBrowsing\Laravel\SafeBrowsingServiceProvider"
Finally, ensure your Google SafeBrowsing API key is set. This can be set within config/safebrowsing.php
or via the SAFEBROWSING_API_KEY
environment variable.
For more information on Google SafeBrowsing API keys, please see https://developers.google.com/safe-browsing/v4/get-started
Basic Usage
use SafeBrowsing;
...
$result = SafeBrowsing::listed('http://ianfette.org/');
// Returns: (bool) true
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature