Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bankiru/qtelecom-php

PHP bindings for QuickTelecom SMS gateway
https://github.com/bankiru/qtelecom-php

qtelecom quicktelecom sms sms-client

Last synced: about 1 month ago
JSON representation

PHP bindings for QuickTelecom SMS gateway

Awesome Lists containing this project

README

        

# Quick-Telecom SMS
PHP bindings for QuickTelecom SMS gateway

## Installation

```sh
composer require bankiru/qtelecom-sms
```

## Usage

### Standalone

```php
send(new MySms('1234567890', 'message body'));
```

### Symfony

Register bundle to the kernel

```php
class AppKernel extends Kernel {
public function registerBundles() {
return [
//...
new \ScayTrase\SmsDeliveryBundle\SmsDeliveryBundle();
new \Bankiru\Sms\QtSms\QtSmsBundle(),
//...
];
}
}
```

Configure the sender

```yaml
sms_delivery:
transport: qt_sms.transport

qt_sms:
login: user
password: pass
url: https://service.qtelecom.ru/public/http/
sender: friendly_man
```

Send SMS

```php
class MyController extends Controller {
public function sendAction() {
$this->get('sms_delivery.sender')->spoolMessage(new MySms('1234567890', 'message body'));
}
}
```