PHPackages                             ampersa/surbl - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ampersa/surbl

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ampersa/surbl
=============

A package to easliy test links and URLs against surbl.org

0.4(5y ago)010.6k2MITPHPPHP ^7.0 | ^8.0CI failing

Since Apr 13Pushed 5y agoCompare

[ Source](https://github.com/ampersa/surbl)[ Packagist](https://packagist.org/packages/ampersa/surbl)[ RSS](/packages/ampersa-surbl/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (2)Versions (7)Used By (0)

This package enables you to query multi.surbl.org with a URL and determine if the domain is listed.

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

[](#installation)

Composer

```
$ composer require ampersa/surbl

```

Usage
-----

[](#usage)

**Basic usage**

```
use Ampersa\SURBL\SURBL;
...

$surbl = new SURBL;
$result = $surbl->listed('http://ampersa.co.uk');
// Returns: (bool) false

$result = $surbl->listed('http://surbl-org-permanent-test-point.com/');
// Returns: (bool) true
```

**Specify lists to query**
By default, all lists (phishing (PH), malware (MW), AbuseButler (ABUSE) and cracked (CR)) are queried.

To specify lists to use, pass a bitmask of options to the constructor

```
$surbl = new SURBL(SURBL::LIST_PH | SURBL::LIST_MW);
$result = $surbl->listed('http://surbl-org-permanent-test-point.com/');
// Returns: (bool) false
```

**Call statically**
A static accessor has been included to provide shorthand access to the listed() function. The second argument may be used to pass the bitmask of options.

```
$result = SURBL::isListed('http://surbl-org-permanent-test-point.com/');
// Returns: (bool) true

$result = SURBL::isListed('http://surbl-org-permanent-test-point.com/', SURBL::LIST_PH | SURBL::LIST_MW);
// Returns: (bool) false
```

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

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% 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

1963d ago

PHP version history (2 changes)0.1.1PHP ^7.0

0.4PHP ^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 (7 commits)")[![UVLabs](https://avatars.githubusercontent.com/u/10324144?v=4)](https://github.com/UVLabs "UVLabs (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[symfony/html-sanitizer

Provides an object-oriented API to sanitize untrusted HTML input for safe insertion into a document's DOM.

27941.7M141](/packages/symfony-html-sanitizer)[league/uri-components

URI components manipulation library

31940.5M98](/packages/league-uri-components)[scssphp/scssphp

scssphp is a compiler for SCSS written in PHP.

62930.2M317](/packages/scssphp-scssphp)[php-soap/wsdl

Deals with WSDLs

184.0M19](/packages/php-soap-wsdl)

PHPackages © 2026

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