PHPackages                             buibr/budget-sms-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. buibr/budget-sms-php

ActiveLibrary[API Development](/categories/api)

buibr/budget-sms-php
====================

Budget SMS API request with PHP.

v1.0(5y ago)528.2k↓46.7%3[1 issues](https://github.com/buibr/budget-sms-php/issues)BSD-4-ClausePHPPHP &gt;=7.0.0CI failing

Since Feb 16Pushed 2y agoCompare

[ Source](https://github.com/buibr/budget-sms-php)[ Packagist](https://packagist.org/packages/buibr/budget-sms-php)[ RSS](/packages/buibr-budget-sms-php/feed)WikiDiscussions master Synced 1mo ago

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

budget-sms-php
==============

[](#budget-sms-php)

#### Install with composer

[](#install-with-composer)

```
composer require buibr/budget-sms-php

```

### Usage:

[](#usage)

###### Example 1:

[](#example-1)

```
$budget = new \buibr\Budget\BudgetSMS( [
    'username'=>'xxx',
    'userid'=> 'xxx',
    'handle'=>'xxx',
]);

//  sender name
$budget->setSender("Test");

//  add recepient
$budget->setRecipient('+38971xxxxxx');

//  add message
$budget->setMessage('Testing the provider');

//  Send the message
$send = $budget->send();
```

###### Example 2:

[](#example-2)

```
use buibr\Budget\BudgetSMS;

$budget = new BudgetSMS( [
    'username'=>'xxx',
    'userid'=> 'xxx',
    'handle'=>'xxx',
    'from'=>'Test',
    'price'=> 1, // optional
    'mccmnc'=> 1, // optional
    'credit'=> 1, // optional
]);

$send = $budget->send( '+38971xxxxxx', 'message content' );
```

### Response examples:

[](#response-examples)

###### Success:

[](#success)

```
buibr\Budget\BudgetResponse Object
(
    [code] => 200
    [type] => text/plain; charset=UTF-8
    [time] => 0.494388
    [status] => 1
    [response] => Array
        (
            [transaction] => 76208843
            [price] => 0.02
            [time] => 1
            [mccmnc] => 29401
            [credit] => 590.5892
        )

    [data] => OK 76208843 0.02 1 29401 590.5892
)
```

###### Error:

[](#error)

```
buibr\Budget\BudgetResponse Object
(
    [code] => 200
    [type] => text/plain; charset=UTF-8
    [time] => 0.32309
    [status] =>
    [response] => SMS message text is empty
    [data] => ERR 2001
)
```

### Push DLR Handler (webhook to accept requests):

[](#push-dlr-handler-webhook-to-accept-requests)

###### Request:

[](#request)

```
$budget = new BudgetSMS;
$dlr = $budget->pushDlr( $payload );
```

###### Response:

[](#response)

```
Array
(
    [code] =>
    [type] =>
    [time] =>
    [status] =>
    [smsid] => xxx
    [sms_code] => 7
    [sms_message] => SMSC error, message could not be processed
)
```

### Pull DLR Handler:

[](#pull-dlr-handler)

###### Request

[](#request-1)

```
$budget = new BudgetSMS( [
    'username'=>'xxx',
    'userid'=> 'xxx',
    'handle'=>'xxx',
]);
$dlr = $budget->pullDLR('xxxx');
```

###### Response

[](#response-1)

```
Array
(
    [code] => 200
    [type] => text/html; charset=UTF-8
    [time] => 0.261374
    [status] =>
    [smsid] => xxx
    [sms_code] => 8
    [sms_message] => Message not allowed
    [data] => OK 8
)
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

1918d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f010dfc3a6587d208aa1d9c7bec81d58f21fbf9100b1fce35b5ae05b747d5e5?d=identicon)[buibr](/maintainers/buibr)

---

Top Contributors

[![buibr](https://avatars.githubusercontent.com/u/13014527?v=4)](https://github.com/buibr "buibr (20 commits)")[![willytietok](https://avatars.githubusercontent.com/u/22540035?v=4)](https://github.com/willytietok "willytietok (1 commits)")

---

Tags

smsbudgetbudget smsbudget sms phpphp budget sms

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/buibr-budget-sms-php/health.svg)

```
[![Health](https://phpackages.com/badges/buibr-budget-sms-php/health.svg)](https://phpackages.com/packages/buibr-budget-sms-php)
```

###  Alternatives

[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[aloha/twilio

Twilio API for Laravel

4733.6M5](/packages/aloha-twilio)[plivo/plivo-php

A PHP SDK to make voice calls &amp; send SMS using Plivo and to generate Plivo XML

1102.8M18](/packages/plivo-plivo-php)[plivo/php-sdk

A PHP SDK to make voice calls &amp; send SMS using Plivo and to generate Plivo XML

1101.9M5](/packages/plivo-php-sdk)[smsapi/php-client

SMSAPI API PHP Client

652.1M17](/packages/smsapi-php-client)[africastalking/africastalking

Official Africa's Talking PHP SDK

122557.6k10](/packages/africastalking-africastalking)

PHPackages © 2026

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