2017 © Pedro Peláez
 

library sms

Simple PHP SDK for sending SMS via BulkGate portal

image

bulkgate/sms

Simple PHP SDK for sending SMS via BulkGate portal

  • Tuesday, July 3, 2018
  • by lukaspijak
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 8 Versions
  • 40 % Grown

The README.md

The SDK is outdated, please use it https://github.com/BulkGate/php-sdk

BulkGate SMS - PHP SDK

Downloads Latest Stable Version License, (*1)

Instalation

The easiest way to install bulkgate/sms into a project is by using Composer via the command line., (*2)

composer require bulkgate/sms

If you have the package installed just plug in the autoloader., (*3)

``` php require_once DIR . '/vendor/autoload.php';, (*4)


In order to send messages, you need an instance of the `BulkGate\Sms\Sender` class that requires instance dependency on the `BulkGate\Message\Connection` class. ``` php $connection = new BulkGate\Message\Connection('APPLICATION_ID', 'APPLICATION_TOKEN'); $sender = new BulkGate\Sms\Sender($connection);

At this point, you are ready to send a message., (*5)

``` php $message = new BulkGate\Sms\Message('447971700001', 'test message');, (*6)

$sender->send($message);, (*7)


The `send()` method will send a message `$message`. ## Nette framework Register the extension to the DI container via NEON ``` neon extensions: bulkgate: BulkGate\Message\Bridges\MessageDI\MessageExtension bulkgate: application_id: <APPLICATION_ID> application_token: <APPLICATION_TOKEN>

which gives you the class BulkGate\Sms\Sender as a service you can request., (*8)

``` php <?php declare(strict_types=1);, (*9)

namespace BulkGate\Presenters;, (*10)

use BulkGate, Nette;, (*11)

class SdkPresenter extends Nette\Application\UI\Presenter { /** @var BulkGate\Sms\ISender @inject */ public $sender;, (*12)

public function actionDefault()
{
    $this->sender->send(new BulkGate\Sms\Message('447971700001', 'test message'));
}

} ```, (*13)

Tracy

At the same time, you'll get the extension for Tracy panel, (*14)

bulkgate-sdk-tracy, (*15)

The Versions

03/07 2018

v1.0.x-dev

1.0.9999999.9999999-dev https://www.bulkgate.com

Simple PHP SDK for sending SMS via BulkGate portal

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

sms nette bulkgate

03/07 2018

1.0.2

1.0.2.0 https://www.bulkgate.com

Simple PHP SDK for sending SMS via BulkGate portal

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

sms nette bulkgate

03/07 2018

dev-master

9999999-dev https://www.bulkgate.com

Simple PHP SDK for sending SMS via BulkGate portal. For credentials contact us.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

sms nette bulkgate

03/07 2018

2.0.2

2.0.2.0 https://www.bulkgate.com

Simple PHP SDK for sending SMS via BulkGate portal. For credentials contact us.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

sms nette bulkgate

27/04 2018

1.0.1

1.0.1.0 https://www.bulkgate.com

Simple PHP SDK for sending SMS via BulkGate portal

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

sms nette bulkgate

27/04 2018

2.0.1

2.0.1.0 https://www.bulkgate.com

Simple PHP SDK for sending SMS via BulkGate portal. For credentials contact us.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

sms nette bulkgate

15/03 2018

1.0.0

1.0.0.0 https://www.bulkgate.com

Simple PHP SDK for sending SMS via BulkGate portal

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

sms nette bulkgate

22/02 2018

2.0.0

2.0.0.0 https://www.bulkgate.com

Simple PHP SDK for sending SMS via BulkGate portal

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

sms nette bulkgate