PHPackages                             tmoh/orange-sms-package - 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. [API Development](/categories/api)
4. /
5. tmoh/orange-sms-package

ActiveLibrary[API Development](/categories/api)

tmoh/orange-sms-package
=======================

Laravel package for Orange SMS API integration

v1.0.1(10mo ago)0278MITPHPPHP ^8.2CI passing

Since Jul 17Pushed 10mo agoCompare

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

READMEChangelogDependencies (5)Versions (3)Used By (0)

Orange SMS Package for Laravel
==============================

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/0f14900a6482502ff28c406474e5aaa51ec64d4f9ea3dc9b22415155ec59cc3e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746d6f682f6f72616e67652d736d732d7061636b6167652e737667)](https://packagist.org/packages/tmoh/orange-sms-package)[![Total Downloads](https://camo.githubusercontent.com/4c5f73014eebbdb8f9fc2eaeb2269ea87a0faf406ff95c803543e20dbc94137e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746d6f682f6f72616e67652d736d732d7061636b6167652e737667)](https://packagist.org/packages/tmoh/orange-sms-package)[![License](https://camo.githubusercontent.com/60f42c809398c26bb901aa1cfb899ebd636fe8f407142dded5e1731134797591/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f746d6f682f6f72616e67652d736d732d7061636b6167652e737667)](https://github.com/medchelios/orange-sms-package/blob/main/LICENSE)

Package Laravel pour l'intégration de l'API SMS d'Orange. Envoyez des SMS, consultez le solde et les statistiques d'usage.

Fonctionnalités
---------------

[](#fonctionnalités)

- Envoi de SMS avec formatage automatique
- Consultation du solde SMS
- Statistiques d'usage détaillées
- Historique des achats
- Authentification OAuth automatique
- Facade Laravel simple d'utilisation

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

[](#installation)

```
composer require tmoh/orange-sms-package
```

Publiez la configuration :

```
php artisan vendor:publish --tag=orange-sms-config
```

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

[](#configuration)

Ajoutez dans votre `.env` :

```
ORANGE_SMS_BASE_URL=https://api.orange.com
ORANGE_SMS_BASIC_TOKEN=your_basic_token_here
ORANGE_SMS_DEFAULT_SENDER_ADDRESS=+224624000000
ORANGE_SMS_DEFAULT_SENDER_NAME="SMS 987519"
ORANGE_SMS_TIMEOUT=30
```

Utilisation
-----------

[](#utilisation)

### Via la Facade

[](#via-la-facade)

```
use Tmoh\OrangeSmsPackage\Facades\OrangeSms;

// Envoyer un SMS
$response = OrangeSms::sendSms(
    '+224624000000',
    'Votre code de vérification est 123456',
    'MyApp'
);

if ($response->success) {
    echo "SMS envoyé avec succès!";
} else {
    echo "Erreur: " . $response->error->text ?? 'Erreur inconnue';
}

// Consulter le solde
$balance = OrangeSms::viewSmsBalance();

// Consulter les statistiques
$usage = OrangeSms::viewSmsUsage();

// Historique des achats
$history = OrangeSms::viewPurchaseHistory();
```

### Via l'Injection de Dépendance

[](#via-linjection-de-dépendance)

```
use Tmoh\OrangeSmsPackage\Contracts\OrangeSmsServiceInterface;

class SmsController extends Controller
{
    public function __construct(
        private OrangeSmsServiceInterface $smsService
    ) {}

    public function sendSms(Request $request)
    {
        $response = $this->smsService->sendSms(
            $request->input('phone'),
            $request->input('message'),
            $request->input('sender_name')
        );

        return response()->json($response);
    }
}
```

Tests
-----

[](#tests)

```
composer test
```

Licence
-------

[](#licence)

MIT License

Support
-------

[](#support)

- Email :
- Issues : [GitHub Issues](https://github.com/medchelios/orange-sms-package/issues)

---

Si ce package vous a aidé, n'hésitez pas à le star sur GitHub !

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance55

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

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

2

Last Release

304d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/89d0d0d5857991b4e0f920532920de3dd3c0b261e34580709b45400780ae2382?d=identicon)[tmoh90](/maintainers/tmoh90)

---

Top Contributors

[![medchelios](https://avatars.githubusercontent.com/u/11645845?v=4)](https://github.com/medchelios "medchelios (5 commits)")

---

Tags

apilaravelsmsorange

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tmoh-orange-sms-package/health.svg)

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

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[nickurt/laravel-postcodeapi

Universal PostcodeApi for Laravel 11.x/12.x/13.x

97221.2k](/packages/nickurt-laravel-postcodeapi)[mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to interact with the Anthropic API

71226.4k1](/packages/mozex-anthropic-laravel)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)[ardakilic/mutlucell

Mutlucell SMS API wrapper for sending sms text messages for Laravel

457.3k](/packages/ardakilic-mutlucell)

PHPackages © 2026

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