cielu/ejabberd 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cielu/ejabberd

最新稳定版本:1.0.1

Composer 安装命令:

composer require cielu/ejabberd

包简介

PHP library for Ejabberd REST API

关键字:

README 文档

README

  • PHP Library for the ejabberd REST API

Installation

composer require cielu/ejabberd

Usage

<?php

use Cielu\Ejabberd\EjabberdClient;

$ejabberd = new EjabberdClient([
   'baseUri' => 'http://localhost:5281' , // must use http or https
   'authorization' => "Bearer vmsTwBYFMJpRUOD8YvnyCdafEUxxxxx"
]);

Examples

// Register User
$res = $ejabberd->register('ciel','123456');

// create room
$res = $ejabberd->createRoom('room name');
  • If the function not exist, we could also use httpPost function like :
$ejabberd->httpPost('/api/add_rosteritem',[
    'localuser' => $localuser ,
    'user' => $user ,
    'nick' => $nickname ,
    'subs' => $subs ,
    'group' => $group ,
    'server' => $server  ,
    'localserver' => $localserver 
]);

统计信息

  • 总下载量: 310
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-05-21