PHPackages                             robust-tools/resala - 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. robust-tools/resala

ActiveLibrary

robust-tools/resala
===================

Laravel SMS Gateway Integration Package

2.3.5(1y ago)226.9k↓40%14MITPHPPHP ^8.1|8.2CI failing

Since Feb 22Pushed 2mo ago8 watchersCompare

[ Source](https://github.com/RobustaStudio/Resala)[ Packagist](https://packagist.org/packages/robust-tools/resala)[ Docs](https://github.com/RobustaStudio/Resala)[ RSS](/packages/robust-tools-resala/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (18)Used By (0)

PHP &amp; Laravel SMS Gateway Integration Package
=================================================

[](#php--laravel-sms-gateway-integration-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f8f32ba6c423609f91b83c9e5d324ecb9e4c04442ce5de8bc096bcd18aa97adf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726f627573742d746f6f6c732f726573616c612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/robust-tools/resala)[![Total Downloads](https://camo.githubusercontent.com/faf8636313dd44dc36832b41738e3bf1a10fcf275e7abdf924fa5f0997085bfa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726f627573742d746f6f6c732f726573616c612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/robust-tools/resala)

**Resala** is a PHP &amp; Laravel Package, (Designed to add support to your laravel or just native php app for sending SMS using local operators in the MENA region Like `Vodafone`, `Infopib`, `Conneckio`, `VectoryLink`).
**Resala** not just tied to use inside Laravel you can hook it up in any php code

Supported Providers
-------------------

[](#supported-providers)

- Vodafone SMS Gateway
- Connekio SMS Gateway
- InfoPib SMS Gateway
- Vectory Link SMS Gateway

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

[](#installation)

You can install the package via composer:

```
composer require robust-tools/resala
```

Laravel Usage.
==============

[](#laravel-usage)

Configure
---------

[](#configure)

publish the config file with:

```
php artisan vendor:publish --provider="RobustTools\Resala\SMSServiceProvider" --tag="config"
```

This is the contents of the published config file:

```
return [

    /*
     * You can specify a default service provider driver here.
     * If it is not set we'll use vodafone as the default driver.
     */
    'default' => env('SMS_DRIVER', 'vodafone'),

    /*
    |--------------------------------------------------------------------------
    | List of sms drivers
    |--------------------------------------------------------------------------
    |
    | This is a list of possible sms gateways drivers
    |
    */

    'drivers' => [

        'vodafone' => [
            'end_point' => env('VODAFONE_END_POINT'),
            'account_id' => env('VODAFONE_ACCOUNT_ID'),
            'password' => env('VODAFONE_PASSWORD'),
            'secure_hash' => env('VODAFONE_SECURE_HASH'),
            'sender_name' => env('VODAFONE_SENDER_NAME', 'Vodafone')
        ],

        'connekio' => [
            'single_sms_endpoint' => env('SINGLE_SMS_ENDPOINT'),
            'batch_sms_endpoint' => env('BATCH_SMS_ENDPOINT'),
            'username' => env('CONNEKIO_USERNAME'),
            'password' => env('CONNEKIO_PASSWORD'),
            'account_id' => env('CONNEKIO_ACCOUNT_ID'),
            'sender_name' => env('CONNEKIO_SENDER_NAME')
        ],

        'infobip' => [
            'end_point' => env('INFOBIP_END_POINT'),
            'username' => env('INFOBIP_USERNAME'),
            'password' => env('INFOBIP_PASSWORD'),
            'sender_name' => env('INFOBIP_SENDER_NAME', 'Infobip')
        ],

        'vectory_link' => [
            'end_point' => env('VECTORY_LINK_END_POINT'),
            'username' => env('VECTORY_LINK_USERNAME'),
            'password' => env('VECTORY_LINK_PASSWORD'),
            'sender_name' => env('VECTORY_LINK_SENDER_NAME', 'Vectory Link'),
            'lang' => env('VECTORY_LINK_LANG', 'E')
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Class Maps
    |--------------------------------------------------------------------------
    |
    |
    | This is a list of Classes that maps to the Drivers above.
    */
    'map' => [
        'vodafone' => VodafoneDriver::class,
        'connekio' => ConnekioDriver::class,
        'infobip' => InfobipDriver::class,
        'vectory_link' => VectoryLink::class
    ],
];
```

Available Commands:
-------------------

[](#available-commands)

This adds `vodafone` environment variables to your .env file.

```
php artisan resala:make vodafone
```

This adds `connekio` environment variables to your .env file.

```
php artisan resala:make connekio
```

This adds `infobip` environment variables to your .env file.

```
php artisan resala:make infobip
```

This adds `vectory_link` environment variables to your .env file.

```
php artisan resala:make vectory_link
```

Usage
-----

[](#usage)

```
SMS::to('010xxxxxxxx')
    ->message("Hello World")
    ->send();

SMS::to(['010xxxxxxxx', '011xxxxxxxx'])
    ->message("Hello World")
    ->send();
```

You can inspect the returned response from your sms provider through:

```
$response = SMS::to(['010xxxxxxxx', '011xxxxxxxx'])
    ->message("Hello World")
    ->send();

$response->success(); // returns bool
$response->body(); // returns string
```

you can optionally change the driver using the `via` method

```
SMS::via('vodafone')
    ->to('010xxxxxxxx')
    ->message("Hello World")
    ->send();
```

Outside Laravel
---------------

[](#outside-laravel)

You need to add a config file named `resala.php` in your project directory the contents of the config file must match the schema of the package config file you can find it [HERE](https://github.com/RobustaStudio/Resala/blob/master/config/resala.php).
just replace the `env(values)` with your driver config values.

```
use RobustTools\Resala\SMS;

$configFile = __DIR__ . "/config/resala.php";

(new SMS($driver, $configFile))->to(['010995162378', '012345522'])
         ->message("Hello World")
         ->send();
```

IF no configuration file is being passed a `InvalidArgumentException` will be thrown.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Mohamed AbdElaziz](https://github.com/mohabdelaziz95)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

53

—

FairBetter than 97% of packages

Maintenance64

Regular maintenance activity

Popularity35

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

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

Recently: every ~175 days

Total

16

Last Release

588d ago

Major Versions

1.0.0 → 2.0.02020-04-25

PHP version history (4 changes)1.0.0PHP ^7.2

2.2.3PHP ^7.3|^8.0

2.3.0PHP ^7.4|^8.0

2.3.4PHP ^8.1|8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/020f784e3cca88c5ff6d96d3a7cddc6269b08b7f876a6f204b1a196255e56dfe?d=identicon)[mohabdelaziz95](/maintainers/mohabdelaziz95)

---

Top Contributors

[![mohabdelaziz95](https://avatars.githubusercontent.com/u/15870349?v=4)](https://github.com/mohabdelaziz95 "mohabdelaziz95 (40 commits)")[![ahmadalfy](https://avatars.githubusercontent.com/u/87611?v=4)](https://github.com/ahmadalfy "ahmadalfy (6 commits)")[![ahmedelsied](https://avatars.githubusercontent.com/u/43114893?v=4)](https://github.com/ahmedelsied "ahmedelsied (3 commits)")[![marwanatef2](https://avatars.githubusercontent.com/u/30902406?v=4)](https://github.com/marwanatef2 "marwanatef2 (3 commits)")[![Mostafa7000](https://avatars.githubusercontent.com/u/109668729?v=4)](https://github.com/Mostafa7000 "Mostafa7000 (3 commits)")[![omarabdelazizgamal](https://avatars.githubusercontent.com/u/212944408?v=4)](https://github.com/omarabdelazizgamal "omarabdelazizgamal (2 commits)")[![OlfatMostafa](https://avatars.githubusercontent.com/u/35943416?v=4)](https://github.com/OlfatMostafa "OlfatMostafa (2 commits)")[![ahmed-elsayed00](https://avatars.githubusercontent.com/u/223678983?v=4)](https://github.com/ahmed-elsayed00 "ahmed-elsayed00 (1 commits)")[![muhamadhhassan](https://avatars.githubusercontent.com/u/14209308?v=4)](https://github.com/muhamadhhassan "muhamadhhassan (1 commits)")[![maboulfotouh](https://avatars.githubusercontent.com/u/35197335?v=4)](https://github.com/maboulfotouh "maboulfotouh (1 commits)")

---

Tags

smsrobust-toolsresala

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/robust-tools-resala/health.svg)

```
[![Health](https://phpackages.com/badges/robust-tools-resala/health.svg)](https://phpackages.com/packages/robust-tools-resala)
```

###  Alternatives

[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[gr8shivam/laravel-sms-api

A modern, flexible Laravel package for integrating any SMS gateway with REST API support

10138.4k](/packages/gr8shivam-laravel-sms-api)[ellaisys/aws-cognito

AWS Cognito package that allows Auth and other related features using the AWS SDK for PHP

120220.7k1](/packages/ellaisys-aws-cognito)[ardakilic/mutlucell

Mutlucell SMS API wrapper for sending sms text messages for Laravel

457.3k](/packages/ardakilic-mutlucell)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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