不灭的火

加密类型:SHA/AES/RSA下载Go
复合类型:数组(array)、切片(slice)、映射(map)、结构体(struct)、指针(pointer、函数(function)、接口(interface)、通道(channel) Go类型
引用类型:切片(slice)、映射(map)、指针(pointer、函数(function)、通道(channel) Go引用

作者:AlbertWen  添加时间:2014-05-19 17:48:00  修改时间:2025-11-11 10:21:22  分类:12.PHP库/系统  编辑

XMPPHP:PHP XMPP Library。提供的功能包括:可以连接任何XMPP1.0服务器,支持TLS加密,多种XML处理方式,持久连接等。

一个发送消息的例子:

<?php
include("xmpp.php");
$conn = new XMPP('talk.google.com', 5222, 'username', 'password', 'xmpphp', 'gmail.com', $printlog=False, $loglevel=LOGGING_INFO);
$conn->connect();
$conn->processUntil('session_start');
$conn->message('someguy@someserver.net', 'This is a test message!');
$conn->disconnect();
?>

 

官网:https://code.google.com/p/xmpphp/