2017 © Pedro Peláez
 

library qtelecom-sms

Bindings for QuickTelecom SMS gateway

image

bankiru/qtelecom-sms

Bindings for QuickTelecom SMS gateway

  • Tuesday, October 3, 2017
  • by scaytrase
  • Repository
  • 2 Watchers
  • 0 Stars
  • 5,503 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 13 % Grown

The README.md

Quick-Telecom SMS

PHP bindings for QuickTelecom SMS gateway, (*1)

Installation

composer require bankiru/qtelecom-sms

Usage

Standalone

<?php

use Bankiru\Sms\QtSms\QtSms;
use Bankiru\Sms\QtSms\QtSmsTransport;
use ScayTrase\SmsDeliveryBundle\Service\ShortMessageInterface;

class MySms implements  ShortMessageInterface {
    /* ... */
}

$transport = new QtSmsTransport(
    new QtSms('user', 'pass', 'https://service.qtelecom.ru/public/http/'),
    'friendly_man'
);
$transport->send(new MySms('1234567890', 'message body'));

Symfony

Register bundle to the kernel, (*2)

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

Configure the sender, (*3)

sms_delivery:
  transport: qt_sms.transport

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

Send SMS, (*4)

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

The Versions

03/10 2017

dev-master

9999999-dev

Bindings for QuickTelecom SMS gateway

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pavel Batanov

sms

03/10 2017

1.1

1.1.0.0

Bindings for QuickTelecom SMS gateway

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pavel Batanov

sms

10/01 2017

1.0

1.0.0.0

Bindings for QuickTelecom SMS gateway

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pavel Batanov

sms