PHP code example of arckinteractive / twilio_sms

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

    

arckinteractive / twilio_sms example snippets


notify_user($member->guid, 0, $subject, $message, [
		'action' => 'something',
		'object' => $entity,
		'url' => $entity->getURL(),
		'summary' => $summary,
		'sms' => $sms, // Provide custom text of the SMS notification, if not provided will fallback to 'summary' and then to 'subject'
], ['email', 'site', 'sms']);

elgg_send_sms('+1123434343', 'Hello there');