定制 tahamohamed/smsgateway 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

tahamohamed/smsgateway

Composer 安装命令:

composer require tahamohamed/smsgateway

包简介

Send SMS using multiple SMS gateways

README 文档

README

Send SMS using multiple gateways like(hisms, smsGateway, netPowers, ...).

Installation

Via Composer

composer require tahamohamed/smsgateway

Then create config file named smsgateway.php in config directory or you can use

php artisan vendor:publish --tag=smsgateway.config

Configuration

You need to add credentials of gateway(s) in smsgateway.php file that will use.

return [
    /*
    |--------------------------------------------------------------------------
    | hisms App Credentials
    |--------------------------------------------------------------------------
    |
    |
    */
    'hisms' => [
        'username' => env('SMS_HISMS_USERNAME',''),
        'password' => env('SMS_HISMS_PASSWORD',''),
        'sender' => env('SMS_HISMS_SENDER','')
    ],
    /*
    |--------------------------------------------------------------------------
    | netpowers App Credentials
    |--------------------------------------------------------------------------
    |
    |
    */
    'netpowers' => [
        'username' => env('SMS_NETPOWERS_USERNAME',''),
        'password' => env('SMS_NETPOWERS_PASSWORD',''),
        'sender' => env('SMS_NETPOWERS_SENDER','')
    ],
    /*
    |--------------------------------------------------------------------------
    | smsgateway App Credentials
    |--------------------------------------------------------------------------
    |
    |
    */
    'smsgateway' => [
        'username' => env('SMS_SMSGATEWAY_USERNAME',''),
        'password' => env('SMS_SMSGATEWAY_PASSWORD',''),
        'sender' => env('SMS_SMSGATEWAY_SENDER','')
    ],
];

Usage

# returns 'gateway config'
$gateway_sms = AppGateway::to(96651111111111)
    // Or NetPowers::to(), Hisms::to()
    // Or Add Multiple Numbers
    ->to([96650000000,96659999999])
    ->addDatetime(['date' => date('Y-m-d'), 'time' => date('H:i')])
    ->addMessage('asd asd asd');

# returns 'response from gateway'
$response = SMSGateway::send($gateway_sms);

Hisms

Please see Hisms docs for more details.

# returns 'gateway config'
$gateway_sms = Hisms::changePassword('new_password');
// Or Hisms::forgetPassword();
// Or Hisms::deleteScheduleSMS();
// Or Hisms::getBalance();

# returns 'response from gateway'
$response = SMSGateway::send($gateway_sms);

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email taha.mohamed2016@gmail.com instead of using the issue tracker.

License

MIT. Please see the MIT for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-02-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固