PHPackages                             ampersa/safebrowsing - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. ampersa/safebrowsing

ActiveLibrary[HTTP &amp; Networking](/categories/http)

ampersa/safebrowsing
====================

Enables querying of Google's SafeBrowsing API

0.1.5(5y ago)032.2k1[1 issues](https://github.com/ampersa/safebrowsing/issues)2MITPHPPHP ^7.0 | ^8.0CI failing

Since Apr 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ampersa/safebrowsing)[ Packagist](https://packagist.org/packages/ampersa/safebrowsing)[ RSS](/packages/ampersa-safebrowsing/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (8)Used By (2)

This package enables you to query Google's SafeBrowsing service to determine if a URL exists in their database.

Installation
------------

[](#installation)

Composer

```
$ composer require ampersa/safebrowsing

```

Usage
-----

[](#usage)

Use of the Google SafeBrowsing API (v4) requires a valid API key. Details can be found at

**Basic usage**

```
use Ampersa\SafeBrowsing\SafeBrowsing;
...

$safebrowsing = new SafeBrowsing(API_KEY);
$result = $safebrowsing->listed('http://ianfette.org');
// Returns: (bool) true
```

The listed() function accepts a second boolen argument, which when `true` returns the threat type as reported by SafeBrowsing

```
$safebrowsing = new SafeBrowsing(API_KEY);
$result = $safebrowsing->listed('http://ianfette.org', true);
// Returns: (string) MALWARE
```

Testing
-------

[](#testing)

To run the unit tests within this package, you will need to edit the tests/SafeBrowsingTest.php file and enter a functional SafeBrowsing API key

Contributing
------------

[](#contributing)

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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 ~281 days

Recently: every ~351 days

Total

6

Last Release

1959d ago

PHP version history (2 changes)0.1PHP ^7.0

0.1.5PHP ^7.0 | ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9970eede3d31de0b53f01de82cfa5f441eff85a7ddbcb6660ab1eb330e027e11?d=identicon)[ampersa](/maintainers/ampersa)

---

Top Contributors

[![ampersa](https://avatars.githubusercontent.com/u/25405272?v=4)](https://github.com/ampersa "ampersa (8 commits)")[![flashadvocate](https://avatars.githubusercontent.com/u/7848492?v=4)](https://github.com/flashadvocate "flashadvocate (2 commits)")

### Embed Badge

![Health badge](/badges/ampersa-safebrowsing/health.svg)

```
[![Health](https://phpackages.com/badges/ampersa-safebrowsing/health.svg)](https://phpackages.com/packages/ampersa-safebrowsing)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[illuminate/http

The Illuminate Http package.

11937.2M6.6k](/packages/illuminate-http)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[dreamfactory/df-core

DreamFactory(tm) Core Components

1652.0k38](/packages/dreamfactory-df-core)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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