PHP code example of joomtriggers / ideamart-php

1. Go to this page and download the library: Download joomtriggers/ideamart-php 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/ */

    

joomtriggers / ideamart-php example snippets


use Joomtriggers\Ideamart\Handler;

$handler = new Handler();
//sending SMS
$handler->sms()
    ->setApplication("APP_000000")
    ->setSecret("SECRET FROM DIALOG")
    ->setMessage("Message")
    ->addSubscriber('tel:077xxxxxxx')
    ->send());

//receiving SMS
$handler->sms()
    ->receive() //receive will be automatically handled if not passed, should be passed as a StdClass Object
    ->getApplication();
$handler->sms()
    ->receive() //receive will be automatically handled if not passed, should be passed as a StdClass Object
    ->getSender();

$ composer