PHP code example of bertoost / craft-messagebird
1. Go to this page and download the library: Download bertoost/craft-messagebird 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/ */
bertoost / craft-messagebird example snippets
// Use the plugin
use bertoost\messagebird\Plugin;
// Send a SMS
Plugin::getInstance()->getSms()
// >setReference('Testing SMS')
// optional: schedule time
->setSchedule((new \DateTime())->modify('+5 minutes'))
// send it
->send();