Skip to content

cloudadic/php-ejabberd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Client for Ejabberd

PHP Ejabberd Client to communicate with XMPP Client

Installation

composer require cloudadic/php-ejabberd

Usage

<?php

require __DIR__ . '/vendor/autoload.php';

use Ejabberd\Client;

$client = Client([
  'port' => 5285,
  'host' => '192.178.12.1',
  'apiEndPoint' => 'your_endpoint'
]);

Examples

// Add User
$user = 'john@doe.com';
$client->addUser($user);

// Ban Account
$user = 'john@doe.com';
$reason = 'Acting too smart';
$client->banAccount($user, $reason);

About

PHP Ejabberd Client

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages