PHPackages                             dridihaythem/laravel-orange-sms-tunisia - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. dridihaythem/laravel-orange-sms-tunisia

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

dridihaythem/laravel-orange-sms-tunisia
=======================================

1.3.0(2y ago)218PHP

Since Dec 29Pushed 2y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

Laravel Orange SMS Tunisia Package
==================================

[](#laravel-orange-sms-tunisia-package)

This Laravel package facilitates the integration of Orange Tunisia SMS services into your Laravel application. With this package, you can easily send SMS messages to phone numbers using the [Orange Tunisia SMS API](https://developer.orange.com/apis/sms-tn/overview).

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

[](#installation)

To get started, install the package via composer by running the following command:

```
composer require dridihaythem/laravel-orange-sms-tunisia
```

After installation, publish the package configuration files by running the following command:

```
php artisan vendor:publish --provider="DridiHaythem\OrangeSMSTunisia\OrangeSMSTunisiaServiceProvider"
```

Next, configure the package in your .env file by providing your Orange Tunisia API token:

```
ORANGE_SMS_TUNISIA_AUTHORIZATION_HEADER="your_token_here"
```

Example
-------

[](#example)

- Send SMS :

    You can use the package to send an SMS by calling the **sendSms** method on the **OrangeSMSTunisiaService** class. Here's a quick example in a Laravel route closure:

    ```
    use DridiHaythem\OrangeSMSTunisia\Services\OrangeSMSTunisiaService;

    Route::get('/send-sms', function (OrangeSMSTunisiaService $service) {
        $response = $service->sendSms(29175235, "Hello, this is a test message.");

        // Handle the response as needed...

    });
    ```
- get available units :

    ```
    use DridiHaythem\OrangeSMSTunisia\Services\OrangeSMSTunisiaService;

    Route::get('/sms-balance', function (OrangeSMSTunisiaService $service) {
        return $service->getAvailableUnits()
    });
    ```

Dashboard
---------

[](#dashboard)

The package provides a sample dashboard to **display the history of all SMS and available units**. The default route for accessing the dashboard is **/orange-sms-tunisia-dashboard**.

[![](screenshots/dashboard.png)](screenshots/dashboard.png)

By default, the dashboard is **enabled**. However, you have the flexibility to manually enable or disable the dashboard, or even change the route name, by modifying the configuration file located at **config/orange\_sms\_tunisia.php** or using .env.

```
ORANGE_SMS_TUNISIA_DASHBOARD_ENABLE=true
ORANGE_SMS_TUNISIA_DASHBOARD_ROUTE=orange-sms-tunisia-dashboard
```

Feel free to customize the configuration according to your specific requirements.

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

[](#configuration)

By default, the package logs all sent SMS messages and their status in a table named **orange\_sms\_tunisia\_logs**. If you wish to disable this logging feature or rename the table name, you can update your .env file:

```
ORANGE_SMS_TUNISIA_ENABLE_LOG=false
ORANGE_SMS_TUNISIA_LOG_TABLE=orange_sms_tunisia_logs
```

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

[](#contributing)

If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request. Your contributions are welcome!

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

Total

4

Last Release

864d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/117b09b2aa1838995e5612bf637ef901f918aea1c4d525233384efb769f68c5e?d=identicon)[haythemdridi](/maintainers/haythemdridi)

---

Top Contributors

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

---

Tags

laravelsmssms-api

### Embed Badge

![Health badge](/badges/dridihaythem-laravel-orange-sms-tunisia/health.svg)

```
[![Health](https://phpackages.com/badges/dridihaythem-laravel-orange-sms-tunisia/health.svg)](https://phpackages.com/packages/dridihaythem-laravel-orange-sms-tunisia)
```

###  Alternatives

[mckenziearts/laravel-notify

Flexible flash notifications for Laravel

1.7k1.1M5](/packages/mckenziearts-laravel-notify)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/apn

Apple APN Push Notification Channel

2021.9M4](/packages/laravel-notification-channels-apn)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[illuminate/mail

The Illuminate Mail package.

5910.1M391](/packages/illuminate-mail)

PHPackages © 2026

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