Integrations

Laravel SMS API Integration

How to configure and send messages in Laravel using our programmable REST API.

api sms laravel marocsms laravel maroclaravel sms gateway maroc

Simple Laravel HTTP Integration

Leverage the power of Laravel's Http facade to make asynchronous requests and configure your timeouts.

Complete Laravel Code Example

Here is how to send an SMS notification using Laravel's native HTTP facade in your controller.

Environment Variables Management

Store your security credentials in your project's .env file to separate configuration from your source code.

Tout savoir sur Integrations.

How to handle asynchronous sending in Laravel?
It is highly recommended to use Laravel queues (Queues/Jobs) with Redis to process background sends without blocking your users.
How to configure authentication?
Add your EnvoiSMS.ma API token to your environment variables (.env) and pass it in the HTTP headers of your requests.