2017 © Pedro PelĆ”ez
 

library google-safe-browsing

Google Safe Browsing Lookup API v4 for Laravel

image

dominykasgel/google-safe-browsing

Google Safe Browsing Lookup API v4 for Laravel

  • Friday, April 14, 2017
  • by dominykasgel
  • Repository
  • 1 Watchers
  • 1 Stars
  • 81 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 13 % Grown

The README.md

GoogleSafeBrowsing

Goole Safe Browsing v4 package for Laravel., (*1)

Installation

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)

Preparation

  1. You need to get your API key from Google Safe Browsing API.
  2. Publish the config file., (*5)

    php artisan vendor:publish --force, (*6)

  3. Set your API key in YOUR-APP/config/google_safe_browsing.php, (*7)

    'api_key' => '*************************************', (*8)

Usage

GoogleSafeBrowsing::lookup( 'https://www.github.com' );

if ( GoogleSafeBrowsing::isSecure() ) {
    echo 'Secure!';
}

More examples

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!';
}

License

The package is licensed under the GPL v3 License., (*9)

Copyright 2017 Dominykas Gelucevičius, (*10)

The Versions

14/04 2017

dev-master

9999999-dev

Google Safe Browsing Lookup API v4 for Laravel

  Sources   Download

GPL-3.0

The Requires

 

by Dominykas Gelucevičius

14/04 2017

1.0.0

1.0.0.0

Google Safe Browsing Lookup API v4 for Laravel

  Sources   Download

GPL-3.0

The Requires

 

by Dominykas Gelucevičius