Download the PHP package jiguang/jsms without Composer

On this page you can find all versions of the php package jiguang/jsms. 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 jsms

JSMS API PHP CLIENT

这是短信 API 的 PHP 版本封装开发包,是由极光官方提供的,一般支持最新的 API 功能。

对应的 API 文档:https://docs.jiguang.cn/jsms/server/rest_api_summary/

支持的 PHP 版本: 5.3.3 ~ 5.6.x, 7.0.x 须启用 cURL 扩展

Installation

Usage

初始化

OR

证书问题

希望开发者在了解相关风险的前提下如此处理 SSL 证书问题。

发送验证码

参数说明:

$phone: 接收验证码的手机号码

$temp_id: 模板ID

$sign_id: 签名ID,null 表示使用应用默认签名

发送语音短信验证码

参数说明:

$phone: 接收验证码的手机号码

$options: 可选选项数组,接受 3 个键 ttlcodevoice_lang 中的一个或多个。

验证

参数说明:

$msg_id: 发送验证码 sendCode 函数返回的数组中的 msg_id 键对应的值

$code: 手机接收到的验证码

发送模板短信

参数说明:

$phone: 接收验证码的手机号码

$temp_id: 模板 ID

$temp_para: 模板参数,需要替换的参数名和 value 的键值对,仅接受数组类型的值

$time: 定时短信发送时间,格式为 yyyy-MM-dd HH:mm:ss,默认为 null 表示立即发送

$sign_id: 签名ID,null 表示使用应用默认签名

发送批量模板短信

参数说明:

$temp_id: 模板 ID

$recipients: 接收者列表,接受一个以 mobile 为键,对应其 temp_para 为值的关联数组

$time: 定时短信发送时间,格式为 yyyy-MM-dd HH:mm:ss,默认为 null 表示立即发送

$sign_id: 签名ID,null 表示使用应用默认签名

$tag: 标签,仅用作标示该短信的别名,不在短信中展示,最多不超过 10 个字

查询定时模板短信

删除定时模板短信

应用余量查询

调用返回码说明

http://docs.jiguang.cn/server/rest_api_jsms/#_12

Examples

在下载的中的 examples 文件夹有简单示例代码, 开发者可以参考其中的样例快速了解该库的使用方法。

注:所下载的样例代码不可马上使用,需要在相应文件中填入相关的必要参数,不然示例运行会失败

简单使用方法

假定当前目录为 JSMS 源码所在的根目录

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/jpush/jsms-api-php-client.

License

The library is available as open source under the terms of the MIT License.


All versions of jsms with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.3
ext-curl Version *
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 jiguang/jsms contains the following files

Loading the files please wait ....