sukohi/google-safe-browsing
Larablocks Analysis
sukohi/google-safe-browsing works with Laravel 5 (latest release 2.0.1, Mar 3, 2016), which reached end of life: no more fixes, even for security.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 5, past end of life
- No release in the last 12 months (last: Mar 3, 2016)
- 0 downloads a month (needs 10,000)
- 0 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Mar 3, 2016.
- No releases in the last 12 months.
- First released: Mar 3, 2016.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.
| Install | |
|---|---|
composer require sukohi/google-safe-browsing |
|
| Latest Version: | 2.0.1 |
| Laravel: | 5 |
| License: | MIT |
| Last Updated: | Mar 3, 2016 |
| Links: | GitHub · Packagist |
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+.)
Installation
Execute composer command.
composer require sukohi/google-safe-browsing:2.*
Register the service provider in app.php
'providers' => [
...Others...,
Sukohi\GoogleSafeBrowsing\GoogleSafeBrowsingServiceProvider::class,
]
Also alias
'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.
php artisan vendor:publish --force
3.Set your API key in YOUR-APP/config/google_safe_browsing.php like so.
'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.
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.
Copyright 2016 Sukohi Kuhoh
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.
Version History
| Version | Released | Laravel | License |
|---|---|---|---|
| 2.0.1 | ~5.0 | MIT | |
| 2.0.0 | ~5.0 | MIT |