PHPackages                             bedanasms/sms-sender - 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. bedanasms/sms-sender

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

bedanasms/sms-sender
====================

A PHP library for sending SMS messages via API

v1.0.3(5mo ago)17MITPHPPHP ^7.4|^8.0

Since Aug 27Pushed 5mo agoCompare

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

READMEChangelog (3)Dependencies (2)Versions (5)Used By (0)

Bedana SMS Sender
=================

[](#bedana-sms-sender)

A framework-agnostic PHP library for sending SMS messages via API.

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

[](#installation)

```
composer require bedanasms/sms-sender
```

Usage
-----

[](#usage)

The library provides two client implementations:

1. `SmsClient` - Uses Guzzle HTTP client (recommended)
2. `SimpleSmsClient` - Uses PHP's built-in `file_get_contents` for HTTP requests (no dependencies)

### Using SmsClient (with Guzzle)

[](#using-smsclient-with-guzzle)

```
use BedanaSmsSender\SmsClient;

// Create a new SMS client
$client = new SmsClient('YOUR_API_KEY', 'https://bedana.uz');

// Send a single SMS
$response = $client->send([
    'phone' => '998123456789',
    'text' => 'Hello from PHP SMS Sender!'
]);

// Send multiple SMS messages
$response = $client->sendBatch([
    [
        'phone' => '998123456789',
        'text' => 'Message 1',
        'operator' => 'uzmobile',
        'prefix' => '998'
    ],
    [
        'phone' => '998987654321',
        'text' => 'Message 2',
        'operator' => 'ucell',
        'prefix' => '998'
    ]
]);
```

### Using SimpleSmsClient (no dependencies)

[](#using-simplesmsclient-no-dependencies)

```
use BedanaSmsSender\SimpleSmsClient;

// Create a new Simple SMS client (no Guzzle dependency)
$client = new SimpleSmsClient('YOUR_API_KEY', 'https://api.example.com');

// The rest of the API is identical
$response = $client->send([
    'phone' => '998123456789',
    'text' => 'Hello from PHP SMS Sender!',
]);
```

Message Status
--------------

[](#message-status)

To check the status of a message:

```
$status = $client->getStatus('message_id_here');
```

Laravel Integration
-------------------

[](#laravel-integration)

If you're using Laravel, you can use our Laravel integration:

```
// In your service provider
public function register()
{
    $this->app->singleton(SmsClient::class, function ($app) {
        return new SmsClient(
            config('services.sms.api_key'),
            config('services.sms.base_url')
        );
    });
}

// In your controller
public function sendSms(SmsService $smsService)
{
    $response = $smsService->sendMessages([
        [
            'phone' => '998123456789',
            'text' => 'Hello from Laravel!',
        ]
    ]);

    return $response;
}
```

Exception Handling
------------------

[](#exception-handling)

```
use BedanaSmsSender\SmsClient;
use BedanaSmsSender\Exceptions\SmsException;

$client = new SmsClient('YOUR_API_KEY');

try {
    $response = $client->send([
        'phone' => '998123456789',
        'text' => 'Hello World!',
    ]);
} catch (SmsException $e) {
    // Handle API-specific errors
    echo 'SMS Error: ' . $e->getMessage();
} catch (\Exception $e) {
    // Handle other exceptions
    echo 'Error: ' . $e->getMessage();
}
```

License
-------

[](#license)

MIT

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance70

Regular maintenance activity

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

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

Total

4

Last Release

169d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/05aa1c111aa75a56c60e48e400f6a087c41bd5b746d322cb85839c979232d784?d=identicon)[kadirovazizbek](/maintainers/kadirovazizbek)

---

Top Contributors

[![kadirovazizbek](https://avatars.githubusercontent.com/u/10919384?v=4)](https://github.com/kadirovazizbek "kadirovazizbek (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bedanasms-sms-sender/health.svg)

```
[![Health](https://phpackages.com/badges/bedanasms-sms-sender/health.svg)](https://phpackages.com/packages/bedanasms-sms-sender)
```

###  Alternatives

[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[omniphx/forrest

A Laravel library for Salesforce

2724.4M8](/packages/omniphx-forrest)[akamai-open/edgegrid-client

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client\_Auth.html

482.5M6](/packages/akamai-open-edgegrid-client)[muhammadhuzaifa/telescope-guzzle-watcher

Telescope Guzzle Watcher provide a custom watcher for intercepting http requests made via guzzlehttp/guzzle php library. The package uses the on\_stats request option for extracting the request/response data. The watcher intercept and log the request into the Laravel Telescope HTTP Client Watcher.

98239.8k1](/packages/muhammadhuzaifa-telescope-guzzle-watcher)[onesignal/onesignal-php-api

A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

34170.2k2](/packages/onesignal-onesignal-php-api)[ory/hydra-client-php

Documentation for all of Ory Hydra's APIs.

1710.8k](/packages/ory-hydra-client-php)

PHPackages © 2026

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