1. Go to this page and download the library: Download bulkgate/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/ */
bulkgate / sms example snippets
php
php
$connection = new BulkGate\Message\Connection('APPLICATION_ID', 'APPLICATION_TOKEN');
$sender = new BulkGate\Sms\Sender($connection);
php
$message = new BulkGate\Sms\Message('447971700001', 'test message');
$sender->send($message);
php
declare(strict_types=1);
namespace BulkGate\Presenters;
use BulkGate, Nette;
class SdkPresenter extends Nette\Application\UI\Presenter
{
/** @var BulkGate\Sms\ISender @inject */
public $sender;
public function actionDefault()
{
$this->sender->send(new BulkGate\Sms\Message('447971700001', 'test message'));
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.