Send and receive SMS with PHP (for Czech Republic)
via composer:
$ composer require smsbrana/sms-connect
use \Neogate\SmsConnect\SmsConnect;
$smsConnect = new SmsConnect('<your_login>', '<secret_password>');
$smsConnect->getInbox();
use \Neogate\SmsConnect\SmsConnect;
$smsConnect = new SmsConnect('<your_login>', '<secret_password>');
$smsConnect->sendSms('<phone_number>', '<text_sms>');
$smsConnect->addRecipient('<phone_number>', '<text_sms>');
$smsConnect->addRecipient('<another_number>', '<another_sms>');
$smsConnect->sendBulk();
config.neon
extensions:
smsconnect: Neogate\SmsConnect\SmsConnectExtension
config.local.neon
smsconnect:
login: 'your_login'
password: 'secret_password'
finally inject extension
/** @var SmsConnect */
private $smsConnect;
public function injectSmsConnectExtension(SmsConnect $smsConnect)
{
$this->smsConnect = $smsConnect;
}