tkg-apps/eskiz-sms-bundle
最新稳定版本:v1.0.4
Composer 安装命令:
composer require tkg-apps/eskiz-sms-bundle
包简介
README 文档
README
Installation
Install the package
composer req tkg-apps/eskiz-sms-bundle
Add to config/bundles.php
TkgApps\EskizSmsSender\EskizSmsBundle::class => ['all' => true],
Add next lines to your .env file
###> sms sender ### ESKIZ_EMAIL=john.doe@mail.com ESKIZ_PASSWORD=password_of_eskiz ESKIZ_FROM=4546 ESKIZ_SMS_SEND_LINK=https://notify.eskiz.uz/api/message/sms/send ESKIZ_GET_TOKEN_LINK=https://notify.eskiz.uz/api/auth/login ###< sms sender ###
How to use
You need to use this service in construct method of class
Example of simple using
class MyClass { public function __construct(private SmsSender $sender) { } public function send(): void { $this->sender->sendMessage('998123456789', 'Hello Mario'); } }
统计信息
- 总下载量: 91
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2023-07-17