sachinkiranti/aakash-sms
Composer 安装命令:
composer require sachinkiranti/aakash-sms
包简介
Aakash Sms Provider Api Wrapper
关键字:
README 文档
README
The sachinkiranti/aakash-sms package provides easy access to the api of Nepali Sms Service Provider called AakashSms.
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/aakash-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\AakashSms\AakashSmsServiceProvider::class, ];
3. Publish Config File
To generate a config file type this command into your terminal:
php artisan vendor:publish --tag=aakash-sms
Usage
Using the sachinkiranti/aakash-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 AakashSms(98xxxxxxxx, "Hello From sachinkiranti/aakash-sms repo."))->send() // or sending to multiple phone number (new AakashSms([98xxxxxxxx, 98xxxxxxxx], "Hello From sachinkiranti/aakash-sms repo."))->send()
Using with helpers
// Single recipient send_aakash_sms (98xxxxxxxx, "Hello From sachinkiranti/aakash-sms repo."); // Or multiple recipients send_aakash_sms ([98xxxxxxxx, 98xxxxxxxx], "Hello From sachinkiranti/aakash-sms repo.");
TODO
- Test
- More flexible Api
- Credit check Api
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-04-28