jadessoriano/laravel-mobivate-sdk
最新稳定版本:0.2.1
Composer 安装命令:
composer require jadessoriano/laravel-mobivate-sdk
包简介
Mobivate SDK using Laravel PHP
README 文档
README
Mobivate SDK for Laravel
This package uses jadessoriano/mobivate-sdk-php
Installation
You can install the package via composer:
composer require jadessoriano/laravel-mobivate-sdk
You can publish the config file with:
php artisan vendor:publish --provider="Jadessoriano\LaravelMobivate\LaravelMobivateServiceProvider" --tag="mobivate-sdk-config"
This is the contents of the published config file:
return [ 'api_key' => env('MOBIVATE_API_KEY'), 'originator' => env('MOBIVATE_ORIGINATOR'), ];
Send Single SMS Message
use Mobivate; Mobivate::sendSingle( recipient: '6xxxxxxxxxxx', body: 'This is a test message.', originator: '6xxxxxxxxxxx', // Optional: defaults to config value if not provided reference: 'sample', // Optional: defaults to null if not provided campaignId: '1-xxx' // Optional: defaults to null if not provided );
Send Batch SMS Message
use Mobivate; /** * Note: The schedule date time (for later delivery) is optional, defaults to null if not provided. */ Mobivate::sendBatch( messages: [ new BatchMessageItem( originator: 'Test', recipient: '44700011122', text: 'This is a test message' ) ], scheduleDateTime: new DateTime('+5 minutes', new DateTimeZone('Asia/Manila')) );
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-04-18