Download the PHP package sxqibo/fast-sms without Composer
On this page you can find all versions of the php package sxqibo/fast-sms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package fast-sms
岐伯短信接口
介绍
本项目是集成了各大云服务厂商的短信业务平台,由山西岐伯科技有限公司维护,目前支持阿里云、腾讯云、七牛云、又拍云、Ucloud、华为云和大汉三通,您如果有其他厂商的集成需求,请通过邮件联系作者提交需求。
运行环境
PHP7.4+
安装教程
使用 composer require sxqibo/fast-sms
命令行安装即可。
安装完成后,会在安装目录带一个配置文件,config/config
,请参考该配置文件的结构当做构造函数的配置结构来进行传参。
代码贡献
如果您有发现有BUG,欢迎 Star,欢迎 PR !
商务合作
手机和微信: 18903467858
欢迎商务联系!合作共赢!
说明
该 composer 包集成了多种短信接口,具体包含下列接口:
- 大汉三通 Dahan
- 阿里云 aliyun 或 aliyun_new
- 腾讯云 qcloud
- 七牛云 qiniu
- 又拍云 ucloud
- 华为云 huawei
- 优刻得 upyun
- 梦网云 mont
例子
上面代码中的 $provider 和 $config 都可以是从数据库中读取的,也可以是从配置文件中读取的
注意:$config 的结构要和上面的结构一致*
调用上面的代码
如果需要扩展,那么实现仿照 sms 目录下,定义一个以 SmsFor 开头的类;类的构造接收配置;然后实现 SmsInterface 的接口即可;
传参时,传 SmsFor 后面的部分即可。
All versions of fast-sms with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
ext-json Version *
ext-curl Version *
guzzlehttp/guzzle Version ~7.0
alibabacloud/client Version ^1.5.32
qiniu/php-sdk Version ^7.2
qcloudsms/qcloudsms_php Version 0.1.*
ucloud/ucloud-sdk-php Version ^0.3.3
alibabacloud/dysmsapi-20170525 Version 2.0.24
ext-json Version *
ext-curl Version *
guzzlehttp/guzzle Version ~7.0
alibabacloud/client Version ^1.5.32
qiniu/php-sdk Version ^7.2
qcloudsms/qcloudsms_php Version 0.1.*
ucloud/ucloud-sdk-php Version ^0.3.3
alibabacloud/dysmsapi-20170525 Version 2.0.24
The package sxqibo/fast-sms contains the following files
Loading the files please wait ....