承接 uithread/mgov-sms 相关项目开发

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

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

uithread/mgov-sms

最新稳定版本:1.0

Composer 安装命令:

composer require uithread/mgov-sms

包简介

SMS gateway package for mgov

README 文档

README

Latest Stable Version License: MIT

READY FOR USE!

About

Laravel mGovSMS Intergation package is for your Laravel or Lumen application. It has default sms log tables. Laravel mGovSMS is easily configurable and customizable. Supports Laravel 5.5, 5.6, 5.7, 5.8, and 6.0+

Features

Laravel mGovSMS Features
Send Single SMS
Send OTP SMS
Send Bulk SMS
Send Unicode Single SMS
Send Unicode OTP SMS
Send Unicode Bulk SMS
Log SMS in database
Easy Configuration

Requirements

Laravel Installation Instructions

  1. From your projects root folder in terminal run:
    composer require uithread/mgov-sms
  1. Register the package Register the package, add the ServiceProvider in config/app.php:
    Uithread\MgovSMS\MgovSMSServiceProvider::class,
Add the Facade in config/app.php
    'MgovSMS' => Uithread\MgovSMS\Facades\MgovSMSFacade::class,
  1. Publish the packages config file and migration files by running the following from your projects root folder:
    php artisan vendor:publish --provider="Uithread\MgovSMS\MgovSMSServiceProvider"  
  1. Run the migration to add the table to sms log:
    php artisan migrate
  1. To send SMS use below method:
      use MgovSMS;
     
      MgovSMS::sendSingleSMS('MESSAGE Hello World!', '99########');
      MgovSMS::sendOtpSMS('MESSAGE Hello World!', '99########');
      MgovSMS::sendBulkSMS('MESSAGE Hello World!', '99########,98########');
      MgovSMS::sendSingleUnicode('MESSAGE Hello World!', '99########');
      MgovSMS::sendUnicodeOtpSMS('MESSAGE Hello World!', '99########');
      MgovSMS::sendBulkUnicode('MESSAGE Hello World!', '99########,98########');
      

Configuration

Laravel mGovSMS is configured in directly in /config/mgov-sms.php.

Configuration File

Here are the mgov-sms.php file variables available:

    'userName' => 'USER NAME',//username of the department
    'senderId' => 'SENDER ID',//password of the department
    'password' => 'PASSWORD',//senderid of the deparment
    'secureKey' => 'Generated Secure Key',// Secure key generated at https://services.mgov.gov.in/

File Tree

├── LICENSE
├── README.md
├── composer.json
└── src
    ├── MgovSMS.php
    ├── MgovSMSServiceProvider.php
    ├── config
    │   └── mgov-sms.php
    ├── Facades
    │   └── MgovSMSFacade.php
    ├── migrations
    │   └── 2019_08_20_083308_create_t_sms_logs_table.php
    └── Models
        └── TSmsLog.php

License

Laravel-logger is licensed under the MIT license. Enjoy!

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-11-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固