devsofpixel7/ejabberd
Composer 安装命令:
composer require devsofpixel7/ejabberd
包简介
Ejabbered API Wrapper
README 文档
README
for ejabberd server connection
About
Wrapper tends to simplify connection, access, commands and error logging to ejabberd chat server.
Requirements
PHP >= 5.4
guzzle/guzzle
Installation
composer require devsofpixel7/ejabberd
Configuration
Add to your .env file:
EJABBERD_API=http://url-of-your-ejabberd-server:5280/api/
EJABBERD_DOMAIN=http://url-of-your-ejabberd-server
EJABBERD_CONFERENCE_DOMAIN=conference-domain-prefix
EJABBERD_USER=ejabberd-username
EJABBERD_PASSWORD=ejabberd-password
EJABBERD_DEBUG=true
Usage
Basic usage looks like this:
$ej = New Ejabberd();
$response = $ej->usersConnectedInfo();
return $response;
统计信息
- 总下载量: 997
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-11-29