Download the PHP package hzdad/wbsms without Composer

On this page you can find all versions of the php package hzdad/wbsms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wbsms

wbsms

webman短信插件

适用于webman, 支持阿里云/腾讯云/七牛云/华为云短信, 基于 singka-sms 修改

主要特性

安装

composer require hzdad/wbsms

阿里云短信安装

composer require alibabacloud/client

七牛云短信安装

composer require qiniu/php-sdk

华为云短信需要安装guzzlehttp

composer require guzzlehttp/guzzle

腾讯云短信

composer require qcloudsms/qcloudsms_php

腾讯云插件在php8.0时有一个bug,修复方法如下:

/vendor/qcloudsms/qcloudsms_php/src/SmsSingleSender.php:82

原代码:

public function sendWithParam($nationCode, $phoneNumber, $templId = 0, $params,
    $sign = "", $extend = "", $ext = "")

修改后:

public function sendWithParam($nationCode, $phoneNumber, $templId = 0, $params='',
    $sign = "", $extend = "", $ext = "")

配置

config/plugin/hzdad/wbsms/app.php

使用示例

    public function sendsms(){

        $action = 'register';//模板名称
        $mobile = '13588888888';//手机号
        $params = ['code' => '99999'];//参数
        $areacode = "86";//国际区号,腾讯云选传,其他不传
        $sms = new \Hzdad\Wbsms\Wbsms('qiniu');//传入短信服务商名称, 腾讯云 qcloud , 阿里云 aliyun, 七牛 qiniu, 华为 huawei
        $result = $sms->sendsms($action,$mobile,$params,$areacode);

        if ($result['code'] == 200) {
            echo '发送成功';
        } else {
            echo $result['msg'];
        }
    }

短信验证码创建并验证插件

请参考 https://www.workerman.net/plugin/60

https://github.com/hzdad/codecheck

各大云商短信价格比较,仅供参考,价格可能随时变动(2022年06月05日19:54:31)

云商 1000条 5万条 20万条 是否支持国际短信
阿里云 50 2150 7980 支持
腾讯云 50 2350 8400 支持
七牛(618活动价) 23.65(原价43) 1501.56(原价2085.2) 6127.5(原价8170) 支持
华为(618活动价) 65 1800(原价3150) 7000(原价12000) 支持

阿里云 https://common-buy.aliyun.com/?spm=5176.8195934.J_5834642020.3.75eb437807Tgj1&&commodityCode=newdysmsbag#/buy

腾讯云 https://buy.cloud.tencent.com/sms

华为 https://www.huaweicloud.com/product/msgsms.html

七牛 https://qmall.qiniu.com/template/MjI?spec_combo=MTA0OA&smsprice-txt=

如何选购短信(个人建议,仅供参考)


All versions of wbsms with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hzdad/wbsms contains the following files

Loading the files please wait ....