PHPackages                             room/letexto-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. [HTTP &amp; Networking](/categories/http)
4. /
5. room/letexto-sms-package

ActiveLibrary[HTTP &amp; Networking](/categories/http)

room/letexto-sms-package
========================

Package PHP pour l'envoi de SMS via l'API Letexto

1.0.0(1y ago)396MITPHPPHP ^8.0

Since Jun 26Pushed 1y agoCompare

[ Source](https://github.com/roomdada/package-sms)[ Packagist](https://packagist.org/packages/room/letexto-sms-package)[ RSS](/packages/room-letexto-sms-package/feed)WikiDiscussions main Synced today

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

Letexto SMS Package
===================

[](#letexto-sms-package)

Package PHP pour l'envoi de SMS via l'API Letexto.

**Développé par :** DA Sie Roger ()

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

[](#installation)

```
composer require room/letexto-sms-package:^1.0
```

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

[](#configuration)

```
use Room\Sms\SmsClient;

$client = new SmsClient([
    'token' => 'votre_token_api',
    'base_url' => 'https://apis.letexto.com/v1'
]);
```

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

[](#utilisation)

### Envoi d'un SMS simple

[](#envoi-dun-sms-simple)

```
$response = $client->send([
    'to' => '2250100000000',
    'content' => 'Votre code de vérification est: 123456',
    'from' => 'MonApp'
]);
```

### Envoi d'un SMS avec expéditeur personnalisé

[](#envoi-dun-sms-avec-expéditeur-personnalisé)

```
$response = $client->send([
    'to' => '2250200000000',
    'content' => 'Message de test',
    'from' => 'TestApp'
]);
```

### Envoi en masse

[](#envoi-en-masse)

```
$response = $client->sendBulk([
    'to' => ['2250100000000', '2250200000000'],
    'content' => 'Message en masse',
    'from' => 'MonApp'
]);
```

Intégration Laravel
-------------------

[](#intégration-laravel)

### Installation dans Laravel

[](#installation-dans-laravel)

```
composer require room/letexto-sms-package:^1.0
```

### Configuration Laravel

[](#configuration-laravel)

#### Option 1 : Publier le fichier de configuration (recommandé)

[](#option-1--publier-le-fichier-de-configuration-recommandé)

```
php artisan vendor:publish --provider="Room\Sms\SmsServiceProvider"
```

#### Option 2 : Configuration manuelle

[](#option-2--configuration-manuelle)

Créez le fichier `config/letexto.php` :

```
