PHPackages                             dosomething/mb-toolbox - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. dosomething/mb-toolbox

AbandonedArchivedLibrary[Queues &amp; Workers](/categories/queues)

dosomething/mb-toolbox
======================

A library of functionality shared between the components that make up the Quicksilver system: https://github.com/DoSomething/message-broker. Some of the functionality is DoSomething.org specific.

0.13.2(9y ago)0908[4 issues](https://github.com/DoSomething/mb-toolbox/issues)MITPHPPHP &gt;= 5.3.0

Since Nov 25Pushed 9y ago14 watchersCompare

[ Source](https://github.com/DoSomething/mb-toolbox)[ Packagist](https://packagist.org/packages/dosomething/mb-toolbox)[ Docs](https://github.com/DoSomething/mb-toolbox)[ RSS](/packages/dosomething-mb-toolbox/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (117)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/14a4ca29baba5af5dfd703c4a9b8eed00787cf46421ca646817af1f9e439cc7a/68747470733a2f2f706f7365722e707567782e6f72672f646f736f6d657468696e672f6d622d746f6f6c626f782f762f737461626c652e737667)](https://packagist.org/packages/dosomething/mb-toolbox) [![Total Downloads](https://camo.githubusercontent.com/75909d57b80b62693c28ca289939bd30299baae0ed0407ba1016719934f6a266/68747470733a2f2f706f7365722e707567782e6f72672f646f736f6d657468696e672f6d622d746f6f6c626f782f646f776e6c6f6164732e737667)](https://packagist.org/packages/dosomething/mb-toolbox) [![License](https://camo.githubusercontent.com/eea49b830a2b3df9ec4bb5fb8701d476d554c289af799c3957f65ebb81ad31ba/68747470733a2f2f706f7365722e707567782e6f72672f646f736f6d657468696e672f6d622d746f6f6c626f782f6c6963656e73652e737667)](https://packagist.org/packages/dosomething/mb-toolbox)mb-toolbox
=========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#---mb-toolbox)

A collection of classes and related methods that provide common functionality for many of the producers and consumers applications within the Message Broker system.

\####class MB\_Toolbox **Methods**

- isDSAffiliate($targetCountyCode)
- createDrupalUser($user)
- getPasswordResetURL($uid)
- getDSMemberCount()
- subscriptionsLinkGenerator($targetEmail)
- curlPOST($curlUrl, $post)
- curlPOSTauth($curlUrl, $post)
- curlDELETE($curlUrl)
- curlDELETEauth($curlUrl)
- authenticate()

\####class MB\_Toolbox\_cURL **Methods**

- curlGET($curlUrl, $isAuth = FALSE)
- curlGETauth($curlUrl)
- curlGETImage($imageUrl)
- authenticate()

\####class MB\_Toolbox\_BaseConsumer

```
@param string $targetMBconfig
The Message Broker object used to interface the RabbitMQ server exchanges and related queues.
$targetMBconfig = 'messageBroker'

```

**Methods**

- consumeQueue($payload)
- throttle($maxMessageRate) **abstract protected**
- setter($message)
- canProcess()
- process()

\####class MB\_MailChimp($settings)

```
@param array $settings
Settings from external services - Mailchimp

```

**Methods**

- submitBatchToMailChimp($composedBatch)
- submitToMailChimp($composedItem)

\####class MB\_Configuration

```
@param array $source
  The source of configuration settings. This can be from a file or an endpoint.
@param array $applicationSettings
  General application settings for use by all classes in application.

```

**Methods**

- exchangeSettings($targetExchange)

\####class MB\_Configuration

```
@param array $settings
  Configuration settings defined by the application script accessing the library.

```

**Methods**

- private \_\_construct()
- static getInstance()
- setProperty($key, $value)
- getProperty($key)
- constructRabbitConfig($targetExchange, $targetQueues = NULL)
- exchangeSettings($targetExchange)
- gatherSettings($targetSetting)

\####Gulp Support Use path directly to gulp `./node_modules/.bin/gulp` or add alias to system config (`.bash_profile`) in alias gulp='./node\_modules/.bin/gulp'

\###Linting

- `gulp lint`

\###Linting

- `gulp test`

See `gulpfile.js` for configuration.

### PHP CodeSniffer

[](#php-codesniffer)

- `php ./vendor/bin/phpcs --standard=./ruleset.xml --colors -s src tests`Listing of all coding volations by file.
- `php ./vendor/bin/phpcbf --standard=./ruleset.xml --colors src tests`Automated processing of files to adjust to meeting coding standards.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

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

Recently: every ~31 days

Total

111

Last Release

3376d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cead7b7f0d4a9226e6ef1f530c86c8344e8f77a2a267db53ba326a187fed48a6?d=identicon)[sergiitk](/maintainers/sergiitk)

![](https://www.gravatar.com/avatar/5ffdcd23949fbb002691a710aa928eba2f3ae6e98191eee9e35c3806a6af7630?d=identicon)[DeeZone](/maintainers/DeeZone)

---

Top Contributors

[![sergiitk](https://avatars.githubusercontent.com/u/672669?v=4)](https://github.com/sergiitk "sergiitk (30 commits)")[![deezone](https://avatars.githubusercontent.com/u/2119264?v=4)](https://github.com/deezone "deezone (14 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")

---

Tags

phplibraryrabbitmqmessage-brokerQuicksilver

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/dosomething-mb-toolbox/health.svg)

```
[![Health](https://phpackages.com/badges/dosomething-mb-toolbox/health.svg)](https://phpackages.com/packages/dosomething-mb-toolbox)
```

###  Alternatives

[php-amqplib/thumper

AMQP Tools

276210.8k8](/packages/php-amqplib-thumper)[videlalvaro/thumper

AMQP Tools

27783.1k3](/packages/videlalvaro-thumper)[iamfarhad/laravel-rabbitmq

A robust RabbitMQ driver for Laravel Queue with advanced message queuing, reliable delivery, and high-performance async processing capabilities

3215.6k](/packages/iamfarhad-laravel-rabbitmq)[mookofe/tail

RabbitMQ and PHP client for Laravel and Lumen that allows you to add and listen queues messages just simple

5552.5k](/packages/mookofe-tail)[marwanalsoltany/amqp-agent

An elegant wrapper around the famous php-amqplib for 90% use case.

161.8k](/packages/marwanalsoltany-amqp-agent)

PHPackages © 2026

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