theamostafa / sms
用于管理短信的包
1.0.0
2023-07-03 15:59 UTC
Requires
- php: ^7.4|^8.0
- guzzlehttp/guzzle: ^7.0.1
- illuminate/contracts: *
- illuminate/support: *
Requires (Dev)
- barryvdh/laravel-ide-helper: ^2.13
- orchestra/testbench: ^6.0
- pestphp/pest: ^1.23
- phpunit/phpunit: ^9.3
- vimeo/psalm: ^3.11
This package is not auto-updated.
Last update: 2024-09-24 20:21:18 UTC
README
安装
您可以通过composer安装此包
composer require theamostafa/sms
您可以使用以下命令发布配置文件
php artisan vendor:publish --provider="Theamostafa\SMS\SMSServiceProvider" --tag="config"
这是发布配置文件的内容
return [ /* |-------------------------------------------------------------------------- | Default SMS gateway |-------------------------------------------------------------------------- | | This option controls the default gateway that is used to send any sms | SMS sent by your application. Alternative SMS may be setup | and used as needed; however, this SMS will be used by default. | Supported: "alpha", "mshastra", "qyadat" | */ 'default' => env("SMS_GATEWAY", 'qyadat'), 'username' => env("SMS_USERNAME", null), 'sender' => env("SMS_SENDER", null), 'password' => env("SMS_PASSWORD", null), ];
用法
use SMS; SMS::send('message','966512345678'); SMS::message('message')->to('966512345678')->send();
测试
composer test
变更日志
有关最近更改的更多信息,请参阅 变更日志
贡献
有关详细信息,请参阅 贡献指南
安全漏洞
请查阅 我们的安全策略 了解如何报告安全漏洞。
致谢
许可证
MIT许可证(MIT)。有关更多信息,请参阅 许可证文件