Componette

Componette

smsbrana

smsbrana / sms-connect v0.3.7.2

Send and receive SMS with PHP

download-cloud-line composer require smsbrana/sms-connect

Smsconnect

Send and receive SMS with PHP (for Czech Republic)

Registration

Installation

via composer:

$ composer require smsbrana/sms-connect

Usage

Inbox

use \Neogate\SmsConnect\SmsConnect;
$smsConnect = new SmsConnect('<your_login>', '<secret_password>');
$smsConnect->getInbox();

Send SMS

use \Neogate\SmsConnect\SmsConnect;
$smsConnect = new SmsConnect('<your_login>', '<secret_password>');
$smsConnect->sendSms('<phone_number>', '<text_sms>');

Send bulk

$smsConnect->addRecipient('<phone_number>', '<text_sms>');
$smsConnect->addRecipient('<another_number>', '<another_sms>');
$smsConnect->sendBulk();

Using as extension in Nette Framework

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;
}
bar-chart-fill

Statistics

download-cloud-fill
885
star-fill
5
bug-fill
3
flashlight-fill
1.5y
price-tag-2-line

Badges

guide-fill

Dependencies

php (>=5.3.0)
guide-fill

Keywords

Componette Componette felix@nette.org