2017 © Pedro Peláez
 

library xmpplogger

PSR3 compliant XMPPLogger for PHP

image

thesaturn/xmpplogger

PSR3 compliant XMPPLogger for PHP

  • Wednesday, March 29, 2017
  • by thesaturn
  • Repository
  • 1 Watchers
  • 2 Stars
  • 9 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

XMPPLogger

This is simple PSR3 compliant XMPPLogger for PHP. Uses Fabiang XMPP client for sending messages., (*1)

System requirements

PHP >= 5.3, (*2)

Usage:

At first you need to set up xmpp connection:, (*3)

use Fabiang\Xmpp\Options;
use Fabiang\Xmpp\Client;
$options = new Options('tcp://example.com:5222');
$options->setUsername('twilight')->setPassword('sparkle');
$client = new Client($options);

Now you can create logger, (*4)

use \thesaturn\xmpplogger\XMPPLogger;
$log = new XMPPLogger($client, $config['xmpp']['to'], 'debug');
$log->info("Hello log");

Installation

Add following lines to the composer:, (*5)

"require": {
    "thesaturn/xmpplogger": "1.0"
}

The Versions

29/03 2017

dev-master

9999999-dev

PSR3 compliant XMPPLogger for PHP

  Sources   Download

MIT

The Requires

 

by Avatar thesaturn

logger xmpp jabber

28/03 2017

1.0.1

1.0.1.0

PSR3 compliant XMPPLogger for PHP

  Sources   Download

MIT

The Requires

 

by Avatar thesaturn

logger xmpp jabber

28/03 2017

1.0.0

1.0.0.0

PSR3 compliant XMPPLogger for PHP

  Sources   Download

MIT

The Requires

 

by Avatar thesaturn

logger xmpp jabber