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(7mo ago)17MITPHPPHP ^7.4|^8.0

Since Aug 27Pushed 7mo agoCompare

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

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

32

—

LowBetter than 69% of packages

Maintenance65

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

214d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10919384?v=4)[Azizbek Kadirov](/maintainers/kadirovazizbek)[@kadirovazizbek](https://github.com/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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[guzzlehttp/guzzle-services

Provides an implementation of the Guzzle Command library that uses Guzzle service descriptions to describe web services, serialize requests, and parse responses into easy to use model structures.

25711.0M191](/packages/guzzlehttp-guzzle-services)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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