PHP code example of interactive-solutions / zf-sms

1. Go to this page and download the library: Download interactive-solutions/zf-sms 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/ */

    

interactive-solutions / zf-sms example snippets


use InteractiveSolutions\Sms\Controller\DeliveryReportCollectionController;
use Zend\Mvc\Router\Http\Literal;

return [
    'sms-delivery-reports' => [
        'type'    => Literal::class,
        'options' => [
            'route'    => '/callback-url-from-options',
            'defaults' => [
                'controller' => DeliveryReportCollectionController::class
            ],
        ],
    ],
];

use InteractiveSolutions\Bernard\Producer;
...
//code to create/config bernard producer
...

$sms = new SmsMessage(
    '+46700000000',,
    'Hello World'
);

$producer->produce($sms);