Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/bankiru/qtelecom-php
- Owner: bankiru
- License: mit
- Created: 2016-12-14T09:46:59.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-11-07T15:55:40.000Z (about 2 years ago)
- Last Synced: 2024-11-08T00:10:40.212Z (about 2 months ago)
- Topics: qtelecom, quicktelecom, sms, sms-client
- Language: PHP
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.transportqt_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'));
}
}
```