dev-master
9999999-devGoogle Safe Browsing Lookup API v4 for Laravel
GPL-3.0
The Requires
by Dominykas GeluceviÄius
1.0.0
1.0.0.0Google Safe Browsing Lookup API v4 for Laravel
GPL-3.0
The Requires
by Dominykas GeluceviÄius
Wallogit.com
2017 © Pedro PelĆ”ez
Google Safe Browsing Lookup API v4 for Laravel
Goole Safe Browsing v4 package for Laravel., (*1)
Run the following from the Terminal:, (*2)
composer require dominykasgel/google-safe-browsing
Next, add your new provider to the providers array of config/app.php:, (*3)
'providers' => [
dominykasgel\GoogleSafeBrowsing\GoogleSafeBrowsingServiceProvider::class,
]
Finally, add aliases to the aliases array of config/app.php: 'aliases' => [ 'GoogleSafeBrowsing' => dominykasgel\GoogleSafeBrowsing\Facades\GoogleSafeBrowsingFacade::class ], (*4)
Publish the config file., (*5)
php artisan vendor:publish --force, (*6)
Set your API key in YOUR-APP/config/google_safe_browsing.php, (*7)
'api_key' => '*************************************', (*8)
GoogleSafeBrowsing::lookup( 'https://www.github.com' );
if ( GoogleSafeBrowsing::isSecure() ) {
echo 'Secure!';
}
GoogleSafeBrowsing::lookup( 'https://www.github.com' );
if ( GoogleSafeBrowsing::isSecure() ) {
echo 'Secure!';
}
if ( GoogleSafeBrowsing::isSocialEngineering() ) {
echo 'Social Engineering!';
}
if ( GoogleSafeBrowsing::isMalware() ) {
echo 'Malware!';
}
if ( GoogleSafeBrowsing::isUnwanted() ) {
echo 'Unwatend software!';
}
if ( GoogleSafeBrowsing::isHarmfulApplication() ) {
echo 'Harmful application!';
}
The package is licensed under the GPL v3 License., (*9)
Copyright 2017 Dominykas GeluceviÄius, (*10)
Google Safe Browsing Lookup API v4 for Laravel
GPL-3.0
Google Safe Browsing Lookup API v4 for Laravel
GPL-3.0