sms-proxima / notifier
Symfony Notifier Bridge for SMS Proxima — send SMS via the SMS Proxima API
Package info
github.com/SMS-Proxima/sms-proxima-notifier
Type:symfony-bridge
pkg:composer/sms-proxima/notifier
v1.0.0
2026-04-20 12:47 UTC
Requires
- php: >=8.1
- sms-proxima/sdk: ^1.0
- symfony/notifier: ^6.4 || ^7.0
Requires (Dev)
- phpunit/phpunit: ^10.0
- symfony/http-client: ^6.4 || ^7.0
README
Provides SMS Proxima integration for Symfony Notifier.
Installation
composer require sms-proxima/notifier
DSN Configuration
Add to your .env:
SMS_PROXIMA_DSN=sms-proxima://TOKEN@default?from=EXPEDITEUR
| Parameter | Description |
|---|---|
TOKEN |
Your SMS Proxima API token |
EXPEDITEUR |
Sender name shown on recipient's phone (max 11 chars) |
Then configure the transport in config/packages/notifier.yaml:
framework: notifier: texter_transports: sms_proxima: '%env(SMS_PROXIMA_DSN)%'
Basic Usage
use Symfony\Component\Notifier\Message\SmsMessage; use Symfony\Component\Notifier\TexterInterface; class OrderController { public function confirm(TexterInterface $texter): void { $texter->send(new SmsMessage( '+33612345678', 'Votre commande est confirmée !' )); } }
Advanced Options
Use SmsProximaOptions for SMS Proxima-specific features:
use Symfony\Component\Notifier\Bridge\SmsProxima\SmsProximaOptions; use Symfony\Component\Notifier\Message\SmsMessage; $sms = new SmsMessage('+33612345678', 'Votre message'); $sms->options((new SmsProximaOptions()) ->sandbox(true) // Test mode — no SMS sent, no credits deducted ->stop(false) // Disable STOP mention (transactional only) ->timeToSend('2026-12-25 10:00') // Schedule for later ->idempotencyKey('unique-uuid-here') // Prevent duplicate sends ); $texter->send($sms);