PHPackages                             amsiam/send-sms - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. amsiam/send-sms

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

amsiam/send-sms
===============

Send SMS through any bulk provider just using single package.

v1.0.0(1y ago)01MITPHP

Since Apr 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Amsiam/laravel-send-sms)[ Packagist](https://packagist.org/packages/amsiam/send-sms)[ RSS](/packages/amsiam-send-sms/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

SendSMS Laravel Package
=======================

[](#sendsms-laravel-package)

Overview
--------

[](#overview)

The `Amsiam\SendSMS` package provides a simple and flexible way to send SMS messages in Laravel applications. It supports multiple SMS drivers and allows sending single messages, one message to multiple recipients, or multiple messages to multiple recipients. Additionally, it provides functionality to check the SMS balance for the configured driver.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#the-amsiamsendsms-package-provides-a-simple-and-flexible-way-to-send-sms-messages-in-laravel-applications-it-supports-multiple-sms-drivers-and-allows-sending-single-messages-one-message-to-multiple-recipients-or-multiple-messages-to-multiple-recipients-additionally-it-provides-functionality-to-check-the-sms-balance-for-the-configured-driver)

Table of Contents
-----------------

[](#table-of-contents)

1. [Requirements](#requirements)
2. [Installation](#installation)
3. [Configuration](#configuration)
4. [Usage](#usage)
    - [Setting a Driver](#setting-a-driver)
    - [Sending a Single SMS](#sending-a-single-sms)
    - [Sending One Message to Multiple Recipients](#sending-one-message-to-multiple-recipients)
    - [Sending Multiple Messages to Multiple Recipients](#sending-multiple-messages-to-multiple-recipients)
    - [Checking SMS Balance](#checking-sms-balance)
    - [Static Method Calls](#static-method-calls)
5. [Supported Drivers](#supported-drivers)
6. [Error Handling](#error-handling)
7. [Support](#support)

---

Requirements
------------

[](#requirements)

- **PHP**: 7.4 or higher
- **Laravel**: 8.x or higher
- **Composer**: For package installation
- A valid account with a supported SMS provider (e.g., BulkSMSBD)

---

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

[](#installation)

1. Install the package via Composer:

    ```
    composer require amsiam/send-sms
    ```
2. Publish the configuration file (optional):

    ```
    php artisan vendor:publish --provider="Amsiam\SendSMS\SendSMSServiceProvider"
    ```

    This will create a `config/sendsms.php` file in your Laravel project.
3. **Register the Facade**(optional): Add the `SendSMS` facade to your `config/app.php` file under the `aliases` array:

    ```
    'aliases' => [
        // Other aliases...
        'SendSMS' => Amsiam\SendSMS\Facades\SendSMS::class,
    ],
    ```

---

Configuration
-------------

[](#configuration)

The package uses a configuration file (`config/sendsms.php`) to set the default SMS driver and driver-specific settings. Below is an example configuration:

```
