承接 sachinkiranti/sparrow-sms 相关项目开发

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

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

sachinkiranti/sparrow-sms

Composer 安装命令:

composer require sachinkiranti/sparrow-sms

包简介

Sparrow Sms Provider Api Wrapper

README 文档

README

The sachinkiranti/sparrow-sms package provides easy access to the api of Nepali Sms Service Provider called SparrowSms.

Installation

Installation is straightforward, setup is similar to every other Laravel Packages.

1. Install via Composer

Begin by pulling in the package through Composer:

composer require sachinkiranti/sparrow-sms

2. Define the Service Provider and alias

Note: This package supports the new auto discovery features of Laravel >=5.5, so if you are working on a Laravel >=5.5 project, then your installation is complete, you can skip to step 3.

Add manually the service provider in your config/app.php file :

'providers' => [
    // ...
    SachinKiranti\SparrowSms\SparrowSmsServiceProvider::class,
];

3. Publish Config File

To generate a config file type this command into your terminal:

php artisan vendor:publish --tag=sparrow-sms

Usage

Using the sachinkiranti/sparrow-sms package :

After publishing the config files, please add the auth token token.

Sending Sms :

// $recipients can be array of phone number or a single phone number
 (new SparrowSms(98xxxxxxxx, "Hello From sachinkiranti/sparrow-sms repo."))->send()
//  or sending to multiple phone number
 (new SparrowSms([98xxxxxxxx, 98xxxxxxxx], "Hello From sachinkiranti/sparrow-sms repo."))->send()

Checking Available Credit :

 (new SparrowSms(null, null))->credit() // Available Credits : 1000

Using with helpers

// Single recipient
 send_sparrow_sms (98xxxxxxxx, "Hello From sachinkiranti/sparrow-sms repo.");
// Or multiple recipients
 send_sparrow_sms ([98xxxxxxxx, 98xxxxxxxx], "Hello From sachinkiranti/sparrow-sms repo.");

Checking Available Credit :

 get_sparrow_sms_credit(); // Available Credits : 1000

TODO

  • Test
  • More flexible Api

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-04-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固