2017 © Pedro Peláez
 

library google-safe-browsing

A Laravel package to check if a specific URL is secure or not through Google Safe Browsing API.

image

sukohi/google-safe-browsing

A Laravel package to check if a specific URL is secure or not through Google Safe Browsing API.

  • Thursday, March 3, 2016
  • by Sukohi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 24 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 9 % Grown

The README.md

GoogleSafeBrowsing

A Laravel package to check if a specific URL is secure or not through Google Safe Browsing API.
This package is inspired by winternight/google-safe-browsing . (But unfortunately I couldn't install the package via composer.)
(This is for Laravel 5+.), (*1)

Installation

Execute composer command., (*2)

composer require sukohi/google-safe-browsing:2.*

Register the service provider in app.php, (*3)

'providers' => [
    ...Others...,  
    Sukohi\GoogleSafeBrowsing\GoogleSafeBrowsingServiceProvider::class,
]

Also alias, (*4)

'aliases' => [
    ...Others...,  
    'GoogleSafeBrowsing'   => Sukohi\GoogleSafeBrowsing\Facades\GoogleSafeBrowsing::class
]

Preparation

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

php artisan vendor:publish --force

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

'api_key' => '*************************************'

Basic Usage

if(GoogleSafeBrowsing::isSecure('https://github.com/SUKOHI')) {

    echo 'Secure!';

}

Get more details

After calling isSecure('URL'), call a method you want like so., (*7)

if(GoogleSafeBrowsing::isPhishing()) {

    echo 'This could be a phishing site!';

}

if(GoogleSafeBrowsing::isMalware()) {

    echo 'This could be a malicious software!';

}

if(GoogleSafeBrowsing::isUnwanted()) {

    echo 'This could be a unwanted site!';

}

License

This package is licensed under the MIT License., (*8)

Copyright 2016 Sukohi Kuhoh, (*9)

The Versions

03/03 2016

2.0.x-dev

2.0.9999999.9999999-dev

A Laravel package to check if a specific URL is secure or not through Google Safe Browsing API.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

03/03 2016

dev-master

9999999-dev

A Laravel package to check if a specific URL is secure or not through Google Safe Browsing API.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

03/03 2016

2.0.1

2.0.1.0

A Laravel package to check if a specific URL is secure or not through Google Safe Browsing API.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

03/03 2016

2.0.0

2.0.0.0

A PHP package mainly developed for Laravel to generate icon fonts like Font-Awesome, Glyphicons, Ionicons, Octicions, Foundation and Material-Icons.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi