2017 © Pedro Peláez
 

component smsc-ua-sms-sender

SMS/MMS/E-Mail/Viber/Voicemail messages sending with SMSC.UA service for CakePHP 3.3.x

image

kield-01/smsc-ua-sms-sender

SMS/MMS/E-Mail/Viber/Voicemail messages sending with SMSC.UA service for CakePHP 3.3.x

  • Sunday, November 27, 2016
  • by KielD-01
  • Repository
  • 1 Watchers
  • 0 Stars
  • 29 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 14 Versions
  • 0 % Grown

The README.md

How to install this package?

composer require kield-01/smsc-ua-sms-sender dev-master to use current version, (*1)

What You need to have to use this package?

  • CakePHP 3.3.x

After You require this package, it will install fabpot/goutte package, (*2)

How to set up this component?

There is 2 options, how to initialize, (*3)

Option 1

Set up credentials key in config/app.php:, (*4)

    'smsc_ua' => [
        'login' => '__LOGIN__',
        'psw' => '__PASSWORD__'
    ]
Option 2

Set up credentials after loading component:, (*5)

    use Cake\Controller\Component\SmscUaComponent;

    /**
    * Class X
    *
    * @property SmscUaComponent $SmscUa
    **/
    class X extends AppController
    {

        public function initialize(){
               $this->loadComponent('SmscUa');

               $this->SmscUa
                   ->setLogin('__LOGIN__')
                   ->setPassword('__PASSWORD__');

                /** OR **/

                $this->SmscUa
                    ->setArgument('login', '__LOGIN__')
                    ->setArgument('psw', '__PASSWORD__');
        }

    }

API

/** Allows You to add one number to current numbers list **/
$this->SmscUa->setNumbers('380666666666');

/** Allows You to add bulk to current numbers list **/
$this->SmscUa->setNumbers(['380666666666', '380666666667']);

/** Allows You to set message Text **/
$this->SmscUa->setMessageBody('Random text');

/** Allows You to change Response format **/
$this->SmscUa->setResponseFormat('string'); // Response as string data
$this->SmscUa->setResponseFormat('digits'); // Response as digits, separated by ','
$this->SmscUa->setResponseFormat('xml');    // Response as XML Document
$this->SmscUa->setResponseFormat('json');   // Response as JSON Object

/** Sending methods **/
$this->SmscUa->sendPlainTextSMS(); // Sending simple SMS

The Versions

27/11 2016

dev-master

9999999-dev

SMS/MMS/E-Mail/Viber/Voicemail messages sending with SMSC.UA service for CakePHP 3.3.x

  Sources   Download

MIT

The Requires

 

27/11 2016

1.2.5.1

1.2.5.1

SMS/MMS/E-Mail/Viber/Voicemail messages sending with SMSC.UA service for CakePHP 3.3.x

  Sources   Download

MIT

The Requires

 

27/11 2016

1.2.5

1.2.5.0

SMS/MMS/E-Mail/Viber/Voicemail messages sending with SMSC.UA service for CakePHP 3.3.x

  Sources   Download

MIT

The Requires

 

27/11 2016

1.2.4

1.2.4.0

SMS/MMS/E-Mail/Viber/Voicemail messages sending with SMSC.UA service for CakePHP 3.3.x

  Sources   Download

MIT

The Requires

 

27/11 2016

1.2.1.x-dev

1.2.1.9999999-dev

SMS/MMS/E-Mail/Viber/Voicemail messages sending with SMSC.UA service for CakePHP 3.3.x

  Sources   Download

MIT

The Requires

 

27/11 2016

1.2.3

1.2.3.0

SMS/MMS/E-Mail/Viber/Voicemail messages sending with SMSC.UA service for CakePHP 3.3.x

  Sources   Download

MIT

The Requires

 

27/11 2016

1.2.2.x-dev

1.2.2.9999999-dev

SMS/MMS/E-Mail/Viber/Voicemail messages sending with SMSC.UA service for CakePHP 3.3.x

  Sources   Download

MIT

The Requires

 

27/11 2016

1.2.2

1.2.2.0

SMS/MMS/E-Mail/Viber/Voicemail messages sending with SMSC.UA service for CakePHP 3.3.x

  Sources   Download

MIT

The Requires

 

26/11 2016

1.2.1

1.2.1.0

SMS/MMS/E-Mail/Viber/Voicemail messages sending with SMSC.UA service for CakePHP 3.3.x

  Sources   Download

MIT

The Requires

 

26/11 2016

1.2.x-dev

1.2.9999999.9999999-dev

SMS/MMS/E-Mail/Viber/Voicemail messages sending with SMSC.UA service for CakePHP 3.3.x

  Sources   Download

MIT

The Requires

 

26/11 2016

1.2

1.2.0.0

SMS/MMS/E-Mail/Viber/Voicemail messages sending with SMSC.UA service for CakePHP 3.3.x

  Sources   Download

MIT

The Requires

 

26/11 2016

1.1.x-dev

1.1.9999999.9999999-dev

SMS/MMS/E-Mail/Viber/Voicemail messages sending with SMSC.UA service for CakePHP 3.3.x

  Sources   Download

MIT

The Requires

 

26/11 2016

1.0.x-dev

1.0.9999999.9999999-dev

SMS/MMS/E-Mail/Viber/Voicemail messages sending with SMSC.UA service for CakePHP 3.3.x

  Sources   Download

MIT

The Requires

 

26/11 2016

1.1

1.1.0.0

SMS/MMS/E-Mail/Viber/Voicemail messages sending with SMSC.UA service for CakePHP 3.3.x

  Sources   Download

MIT

The Requires