2017 © Pedro Peláez
 

library jmessage

JMessage's officially supported PHP client library for accessing JMessage APIs.

image

jiguang/jmessage

JMessage's officially supported PHP client library for accessing JMessage APIs.

  • Monday, July 30, 2018
  • by jpush
  • Repository
  • 12 Watchers
  • 13 Stars
  • 1,994 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 1 Open issues
  • 18 Versions
  • 17 % Grown

The README.md

JMessage API PHP Client

这是 JMessage REST API 的 PHP 版本封装开发包,是由极光推送官方提供的,一般支持最新的 API 功能。, (*1)

对应的 REST API 文档: https://docs.jiguang.cn/jmessage/server/rest_api_im/, (*2)

支持的 PHP 版本: 5.4 ~ 5.6.x, 7, (*3)

Installation

使用 Composer 安装

  • 在项目中的 composer.json 文件中添加 jmessage 依赖:
"require": {
    "jiguang/jmessage": "~1.1"
}
  • 执行 $ php composer.phar install$ composer install 进行安装。

直接下载源码安装

直接下载源代码也是一种安装 SDK 的方法,不过因为有版本更新的维护问题,所以这种安装方式十分不推荐,但由于种种原因导致无法使用 Composer,所以我们也提供了这种情况下的备选方案。, (*4)

  • 下载源代码包,解压到项目中
  • 在项目中引入 autoload(在源码根目录下):
require 'path_to_sdk/autoload.php';

Usage

Examples

注意: 这只是使用样例, 不应该直接用于实际环境中!!, (*5)

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

注:所下载的样例代码不可马上使用,需要在 examples/config.php 文件中填入相关的必要参数,或者设置相关环境变量,不进行这个操作则示例运行会失败。 另外为保护开发者隐私 examples/config.php 文件不在版本控制中,需要使用如下命令手动复制:, (*7)

$ cp examples/config.php.example examples/config.php

示例简单使用方法, (*8)

若要运行 friend_examples.php 中的示例代码:, (*9)

# 假定当前目录为 JMessage 源码所在的根目录
$ php examples/friend_examples.php

当然也可编辑相关的示例文件,更改参数查看执行效果, (*10)

ErrorCode

JMessage 服务器端报的错误码。有可能出现在返回值中,可在这里查询含义: https://docs.jiguang.cn/jmessage/client/im_errorcode_server/, (*11)

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/jpush/jmessage-api-php-client., (*12)

License

The library is available as open source under the terms of the MIT License., (*13)

The Versions

30/07 2018

dev-master

9999999-dev https://github.com/jpush/jmessage-api-php-client

JMessage's officially supported PHP client library for accessing JMessage APIs.

  Sources   Download

MIT

The Requires

  • ext-curl *
  • php >=5.4

 

api client jiguang jmessage

30/07 2018

1.1.10

1.1.10.0 https://github.com/jpush/jmessage-api-php-client

JMessage's officially supported PHP client library for accessing JMessage APIs.

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

api client jiguang jmessage

24/01 2018

1.1.9

1.1.9.0 https://github.com/jpush/jmessage-api-php-client

JMessage's officially supported PHP client library for accessing JMessage APIs.

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

api client jiguang jmessage

10/01 2018

1.1.8

1.1.8.0 https://github.com/jpush/jmessage-api-php-client

JMessage's officially supported PHP client library for accessing JMessage APIs.

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

api client jiguang jmessage

09/01 2018

1.1.7

1.1.7.0 https://github.com/jpush/jmessage-api-php-client

JMessage's officially supported PHP client library for accessing JMessage APIs.

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

api client jiguang jmessage

08/01 2018

1.1.6

1.1.6.0 https://github.com/jpush/jmessage-api-php-client

JMessage's officially supported PHP client library for accessing JMessage APIs.

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

api client jiguang jmessage

07/01 2018

1.1.5

1.1.5.0 https://github.com/jpush/jmessage-api-php-client

JMessage's officially supported PHP client library for accessing JMessage APIs.

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

api client jiguang jmessage

15/08 2017

dev-dev

dev-dev https://github.com/jpush/jmessage-api-php-client

JMessage's officially supported PHP client library for accessing JMessage APIs.

  Sources   Download

MIT

The Requires

  • ext-curl *
  • php >=5.4

 

api client jiguang jmessage

15/08 2017

1.1.4

1.1.4.0 https://github.com/jpush/jmessage-api-php-client

JMessage's officially supported PHP client library for accessing JMessage APIs.

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

api client jiguang jmessage

31/07 2017

1.1.3

1.1.3.0 https://github.com/jpush/jmessage-api-php-client

JMessage's officially supported PHP client library for accessing JMessage APIs.

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

api client jiguang jmessage

28/07 2017

1.1.2

1.1.2.0 https://github.com/jpush/jmessage-api-php-client

JMessage's officially supported PHP client library for accessing JMessage APIs.

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

api client jiguang jmessage

13/07 2017

1.1.1

1.1.1.0 https://github.com/jpush/jmessage-api-php-client

JMessage's officially supported PHP client library for accessing JMessage APIs.

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

api client jiguang jmessage

13/07 2017

1.1.0

1.1.0.0 https://github.com/jpush/jmessage-api-php-client

JMessage's officially supported PHP client library for accessing JMessage APIs.

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

api client jiguang jmessage

26/06 2017

1.0.4

1.0.4.0 https://github.com/jpush/jmessage-api-php-client

JMessage's officially supported PHP client library for accessing JMessage APIs.

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

api client jiguang jmessage

13/02 2017

1.0.3

1.0.3.0 https://github.com/jpush/jmessage-api-php-client

JMessage's officially supported PHP client library for accessing JMessage APIs.

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

api client jiguang jmessage

16/12 2016

1.0.2

1.0.2.0 https://github.com/jpush/jmessage-api-php-client

JMessage's officially supported PHP client library for accessing JMessage APIs.

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

api client jiguang jmessage

16/12 2016

1.0.1

1.0.1.0 https://github.com/jpush/jmessage-api-php-client

JMessage's officially supported PHP client library for accessing JMessage APIs.

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

api client jiguang jmessage

12/12 2016

1.0.0

1.0.0.0 https://github.com/jpush/jmessage-api-php-client

JMessage's officially supported PHP client library for accessing JMessage APIs.

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • ext-curl *

 

api client jiguang jmessage