PHPackages                             sukohi/google-safe-browsing - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. sukohi/google-safe-browsing

ActiveLibrary

sukohi/google-safe-browsing
===========================

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

2.0.1(10y ago)038MITPHP

Since Mar 3Pushed 10y ago1 watchersCompare

[ Source](https://github.com/SUKOHI/GoogleSafeBrowsing)[ Packagist](https://packagist.org/packages/sukohi/google-safe-browsing)[ RSS](/packages/sukohi-google-safe-browsing/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

GoogleSafeBrowsing
==================

[](#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 ](https://stash.treadstone.co/projects/PHPGSB/repos/main/browse). (But unfortunately I couldn't install the package via composer.)
(This is for Laravel 5+.)

Installation
============

[](#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
===========

[](#preparation)

1.You need to get your API key for [Google Safe Browsing API](https://developers.google.com/safe-browsing/lookup_guide).
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
===========

[](#basic-usage)

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

    echo 'Secure!';

}

```

Get more details
================

[](#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
=======

[](#license)

This package is licensed under the MIT License.

Copyright 2016 Sukohi Kuhoh

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

3718d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2980d59b309d45df3f2e6e51b1d336614da063240b8f76f873f287cd745ec5db?d=identicon)[Sukohi](/maintainers/Sukohi)

---

Top Contributors

[![SUKOHI](https://avatars.githubusercontent.com/u/5362394?v=4)](https://github.com/SUKOHI "SUKOHI (1 commits)")

### Embed Badge

![Health badge](/badges/sukohi-google-safe-browsing/health.svg)

```
[![Health](https://phpackages.com/badges/sukohi-google-safe-browsing/health.svg)](https://phpackages.com/packages/sukohi-google-safe-browsing)
```

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[namu/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

54324.5k](/packages/namu-wirechat)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
