officegest/officegest-send-sms

2.0.1 2021-12-16 17:44 UTC

This package is auto-updated.

Last update: 2024-09-16 23:47:56 UTC


README

这是一个使用officegest发送短信的laravel包。

安装

composer require officegest/officegest-send-sms

Laravel < 8.0 添加ServiceProvider到你的config/app.php

OfficegestSms\OfficegestSmsServiceProvider::class,

如果你需要发布此包的配置文件。这将添加文件config/officegest-sms.php,你可以在其中配置此包。

$ php artisan vendor:publish --provider="OfficegestSms\OfficegestSmsServiceProvider" --tag=config

你需要在.env文件中添加以下变量

OFFICEGEST_SMS_ACTIVE=true
OFFICEGEST_SMS_URL="your_officegest_url"
OFFICEGEST_SMS_USER="your_user"
OFFICEGEST_SMS_KEY="your_api_key"

使用

函数OfficegestSms->send()

参数:string $phone_number, string $text

Screenshot

安全

如果你发现任何与安全相关的问题,请发送邮件至suporte@guisoft.net或使用此仓库的问题。

鸣谢