承接 kield-01/smsc-ua-sms-sender 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kield-01/smsc-ua-sms-sender

Composer 安装命令:

composer require kield-01/smsc-ua-sms-sender

包简介

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

README 文档

README

How to install this package?

composer require kield-01/smsc-ua-sms-sender dev-master to use current version

What You need to have to use this package?

  • CakePHP 3.3.x

After You require this package, it will install fabpot/goutte package

How to set up this component?

There is 2 options, how to initialize

Option 1

Set up credentials key in config/app.php:

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

Set up credentials after loading component:

    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

统计信息

  • 总下载量: 31
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-11-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固