dotit/sms-sending-bundle

SmsSendingBundle 是用于 tunisiesms Api 的 Symfony 3.4 扩展包。

V1.0.1 2020-06-12 14:45 UTC

This package is auto-updated.

Last update: 2024-09-13 00:07:21 UTC


README

SmsSendingBundle 是用于 tunisiesms Api 的 Symfony 3.4 扩展包。

config.yml

在 config.yml 文件中使用此行。

sms_sending:
    sms_key: '%sms_Key%'
    sneder: '%sender%"
    mobile: '%mobile%'

parameters.yml

sms_key: [YOUR_SMSKEY]
sender: [YOUR_SENDER_NAME]

composer.json

"autoload": {
        "psr-4": {
            "DotIt\\SmsSendingBundle\\": "[bundle source]",
            ......
        },

AppKernel.php

$bundles = [
           .. ,
           .. ,
           new DotIt\SmsSendingBundle\SmsSendingBundle(),
        ];

命令

in terminal execute these command

$ composer dump-autoload

**** For update database table and add bundle new table *****  
$ ./bin/console doctrine:schema:update --force


用法

//**** Sending Multiples SMS *******

SmsSendingManager::sendMultipleSms($phoneNumbers,$message,$date);

//$phoneNumber array of phoneNumber example: ["21622xxxxxx","21698xxxxxx"]
//$date default null take date of today 

//*** Resend faild sms in Campaign ******
SmsSendingManager::resendCampaign($id)

// $id: id if faild campaign 

许可证

SmsSendingBundle 使用 MIT 许可证 - 详细信息请参阅LICENSE文件。

公司

DOTIT