thesaturn/xmpplogger
Composer 安装命令:
composer require thesaturn/xmpplogger
包简介
PSR3 compliant XMPPLogger for PHP
README 文档
README
This is simple PSR3 compliant XMPPLogger for PHP. Uses Fabiang XMPP client for sending messages.
System requirements
PHP >= 5.3
Usage:
At first you need to set up xmpp connection:
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
use \thesaturn\xmpplogger\XMPPLogger;
$log = new XMPPLogger($client, $config['xmpp']['to'], 'debug');
$log->info("Hello log");
Installation
Add following lines to the composer:
"require": {
"thesaturn/xmpplogger": "1.0"
}
统计信息
- 总下载量: 26
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-03-27