Statistics
N/A
1
0
36d
Badges
Tags
api
Dependencies
  • php (>=5.3.0)
Keywords
sms

Smsconnect

Send and receive SMS with PHP (for Czech Republic)

Registration

Installation

via composer:

$ composer require smsbrana/sms-connect

Usage

Inbox

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

Send SMS

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

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;
}
  • v0.3.0

    • added tests
    • added Exceptions
  • v0.2

    • added Nette extension
  • v0.1 v0.1

Is this addon outdated? Did you find an issue? Please report it.

Componette Componette admin@componette.com