PHP code example of symfony / sms-proxima-notifier
1. Go to this page and download the library: Download symfony/sms-proxima-notifier library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
symfony / sms-proxima-notifier example snippets
use Symfony\Component\Notifier\Bridge\SmsProxima\SmsProximaOptions;
use Symfony\Component\Notifier\Message\SmsMessage;
$sms = new SmsMessage('+33612345678', 'Hello!');
$sms->options((new SmsProximaOptions())
->sandbox(true) // test mode, nothing is sent and no credit is used
->stop(false) // disable the STOP mention, transactional messages only
->timeToSend('2026-12-25 10:00') // schedule the message
->idempotencyKey('unique-uuid-here') // prevent duplicate sends
);
$texter->send($sms);