2017 © Pedro Peláez
 

symfony-bundle symfony-openfire-bundle

Openfire server management for Symfony 2 applications

image

jean553/symfony-openfire-bundle

Openfire server management for Symfony 2 applications

  • Tuesday, March 29, 2016
  • by jean553
  • Repository
  • 1 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Openfire Symfony Bundle

Bundle used to connect to Openfire REST API and perform common tasks., (*1)

Installation

By composer :, (*2)

"require": {
    "jean553/symfony-openfire-bundle": "dev-master"
}

app/AppKernel.php :, (*3)

$bundles = array(
    new jean553\OpenfireBundle\OpenfireBundle()
);

Use

app/config/config.yml :, (*4)

parameters:
    openfire_service: "jean553\OpenfireBundle\Services\OpenfireService"

openfire:
    url: 'http://my-openfire-server:9090/plugins/restapi/v1'
    secret: 'abcdefghijklmnopqrst'

In controller :, (*5)

$service = $this->get('openfire.service');
$service->createUser('username', 'password');
$service->createChatRoom('chat_room_id','chat_room_name', 'username');

$userJid = $service->getJid('username');

Tests

app/config/config_test.yml :, (*6)

parameters:
    openfire_service: "jean553\OpenfireBundle\Services\DummyOpenfireService"

The Versions

29/03 2016

dev-master

9999999-dev https://github.com/jean553/symfony-openfire-bundle

Openfire server management for Symfony 2 applications

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jean LELIEVRE

symfony openfire