PHPackages                             spambarrier/spambarrier-api-php - 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. [API Development](/categories/api)
4. /
5. spambarrier/spambarrier-api-php

ActiveLibrary[API Development](/categories/api)

spambarrier/spambarrier-api-php
===============================

PHP wrapper for spambarrier API.

v1.1.1(7y ago)31082MITPHPPHP &gt;=5.4.0

Since Apr 9Pushed 7y ago1 watchersCompare

[ Source](https://github.com/spambarrier/spambarrier-api-php)[ Packagist](https://packagist.org/packages/spambarrier/spambarrier-api-php)[ Docs](https://github.com/spambarrier/spambarrier-api-php)[ RSS](/packages/spambarrier-spambarrier-api-php/feed)WikiDiscussions 1.0 Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (13)Used By (0)

spambarrier-api-php
===================

[](#spambarrier-api-php)

use spambarrier api with php

with composer:
==============

[](#with-composer)

```
composer require spambarrier/spambarrier-api-php

```

without composer:
=================

[](#without-composer)

```
clone or download sources and put it to the library folder of your project

```

usage
=====

[](#usage)

```
# create the client with account-id and api-key
$client = new Sb\Client(YOUR_ACCOUNT_ID, 'YOUR_API_KEY');

# get list of all domains in account
var_dump($client->getDomains());

# add domain
var_dump($client->addDomain('example.org', 'target.example.org'));

# edit domain
var_dump($client->editDomain('example.org', 'another-target.example.org'));

# delete domain
var_dump($client->deleteDomain('example.org'));

# get filter settings for domain
var_dump($client->getFilterSettings('example.org'));

# set filter settings for domain
var_dump($client->setFilterSettings('example.org', 'quarantine', 10, 'quarantine', false));

# get quarantine contents for domain
var_dump($client->getQuarantine('example.org'));

# get quarantine message for domain and message id
var_dump($client->getQuarantineMessage('example.org', MESSAGE_ID));

# resend a quarantined message
var_dump($client->resendQuarantineMessage('example.org', MESSAGE_ID));

# delete a quarantined message
var_dump($client->deleteQuarantineMessage('example.org', MESSAGE_ID));

# get domain statistics
var_dump($client->getDomainStatistics('example.org', '2016-01-01', '2016-01-31', 'day'));
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

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 ~132 days

Recently: every ~11 days

Total

12

Last Release

2603d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/491c9fdc50e10c13850f5d4e11e406f82e610e3804d6d2dbf58a907039f625af?d=identicon)[spambarrier](/maintainers/spambarrier)

---

Top Contributors

[![dnl-jst](https://avatars.githubusercontent.com/u/712897?v=4)](https://github.com/dnl-jst "dnl-jst (12 commits)")

---

Tags

phpapiantispamspambarrier

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/spambarrier-spambarrier-api-php/health.svg)

```
[![Health](https://phpackages.com/badges/spambarrier-spambarrier-api-php/health.svg)](https://phpackages.com/packages/spambarrier-spambarrier-api-php)
```

###  Alternatives

[jstolpe/instagram-graph-api-php-sdk

Instagram Graph API PHP SDK

13998.4k2](/packages/jstolpe-instagram-graph-api-php-sdk)

PHPackages © 2026

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