Skip to content

giorrrgio/XMPPHPServiceProvider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

XMPPHP Service Provider

A simple Silex Service Provider for integrating XMPPHP into your Silex Project. Note that though XMPPHP is stable, it does not support namespaces yet, thus the Provider uses a require_once to load the XMPP class file.

Usage:

<?php
$app['autoloader']->registerNamespaces(array(
    'giorrrgio\XMPPHPServiceProvider' => __DIR__.'/../vendor'
));

$app['xmpphp.class_file'] = __DIR__.'/../vendor/XMPPHP/XMPP.php';
$app['xmpphp.host'] = 'localhost';
$app['xmpphp.port'] = 5222; 
$app['xmpphp.user'] = 'myuser';
$app['xmpphp.password'] = 'test';
$app['xmpphp.resource'] = 'xmpphp';
$app->register(new \giorrrgio\XMPPHPServiceProvider\XMPPHPServiceProvider());

About

A Silex Service Provider for XMPPHP project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published