Send SMS & Handle Webhooks Using Laravel
Integrate SMS Pro into a Laravel 10/11 application with a custom Notification Channel, Http client wrapper, and signed webhook route.
Integrate SMS Pro into a Laravel 10 or 11 application. This recipe builds a dedicated SmsProService using Laravel's Illuminate\Support\Facades\Http client, provisions a custom Notification Channel, and configures a signed webhook endpoint for carrier delivery reports.
Laravel 10/11 SMS Pro Integration
Navigate the steps on the left to inspect the corresponding PHP code on the right.
1. Configure Environment & Services Config
Add your API credentials to .env and register the smspro service entry in config/services.php.
Step 1 (typescript)
2. Build the SmsProService Client
Create a reusable service class using Laravel's Http facade. Every mutating POST request attaches a unique Str::uuid() idempotency header and throws on HTTP 4xx/5xx client or billing errors.
Step 2 (typescript)
3. Create a Custom Notification Channel
Implement SmsProChannel so any standard Laravel Notification (User::notify()) can dispatch SMS seamlessly through SMS Pro.
Step 3 (typescript)
4. Build the Signed Webhook Controller
Create an invokable controller in app/Http/Controllers/SmsProWebhookController.php that verifies X-SmsPro-Signature using hash_equals() against the raw request content ($request->getContent()).
Step 4 (typescript)
Send SMS & Receive DLRs Using Spring Boot
Build a production-ready Spring Boot 3 service to dispatch transactional SMS and an HMAC-verified controller to ingest delivery reports.
Send Bulk SMS with CSV Streaming & Batch Progress
Ingest high-volume CSV contact lists without memory leaks, dispatch chunked batch jobs, and poll asynchronous campaign completion.