Questions tagged [xmpphp]

XMPPHP is a PHP library for XMPP (aka Jabber).

XMPPHP is the successor to Class.Jabber.PHP.

Some of the features include:

  • Connect to any XMPP server
  • Supports TLS encryption
  • Several XML processing approaches and supported styles

In XMPPHP, the main processing is done by XMLStream.php. This contains a class that could be used to make any streaming XML socket server or client. It handles class connections,sending XML through the socket, but most importantly handling incoming events.

Links:

38 questions
19
votes
2 answers

Not able to make xmpp connection between my app server and GCM's CCS using XMPPHP library

Like push-notification(downstream message), I want to implement upstream messaging from my android device to my app server in php. I am using this XMPPHP library from Github to connect my app server to GCM's CCS. But when I try to execute below…
Chaman Saini
  • 213
  • 1
  • 6
16
votes
2 answers

XMPPHP GTalk Status

I’m trying to get my online status using XMPPHP and I can’t seem to get anything that has my status from the $conn. Here is a snippet of my code: require_once('XMPPHP/XMPP.php'); $conn = new XMPPHP_XMPP('talk.google.com', 5222, 'xxxx@gmail.com',…
ialphan
  • 1,241
  • 1
  • 17
  • 30
7
votes
1 answer

Google Cloud Messaging over XMPP protocol (server working with PHP and XMPPHP). How does it work?

maybe you heard already about it. It was announced at the Google IO maybe one month ago. Google Cloud Messaging was only downstream (server --> phone), but now with the enhancement CCS (cloud connection server) you can send messages upstream over a…
Estefanía
  • 119
  • 2
  • 3
4
votes
1 answer

Error 503 after 10 to 15 XMPP messages

I have written an XMPP daemon (using JAXL) for sending and recieving messages which seems to work OK except for one issue. I can successfully send 10 to 15 messages to the users I want to send to, and then after that any message I send comes back…
Michael Bates
  • 1,884
  • 2
  • 29
  • 40
4
votes
1 answer

How to connect xmpp in php?

i am trying to connect server using xmppphp but is not connect is display nothing include 'XMPPHP/XMPP.php'; $conn = new XMPPHP_XMPP('talk.google.com', 5222, 'test@gmail.com', 'test123', 'xmpphp', 'gmail.com', $printlog=false,…
4
votes
1 answer

jaxl return to function that it's called from

I have library for xmpp transactions used jaxl libraries: class xmpp{ public function register_user($username, $password){ require_once 'JAXL/jaxl.php'; $this->client = new JAXL(array( 'jid' =>…
Arash Mousavi
  • 2,110
  • 4
  • 25
  • 47
3
votes
1 answer

How to set up the New Google Cloud Messaging API server implementation and Hosting using PHP?

I am using the new Google Cloud messaging functionality and it's developed successfully in client side and receiving push notification without any dropping. But I'm using an old Send function on the server. Now I want to implement new send function…
Smit Patel
  • 1,174
  • 3
  • 26
  • 40
3
votes
1 answer

jaxl after send message callback

I want execute some code after a message has already sent in jaxl. which callback is appropriate for this situation? public function test() { require_once 'JAXL/jaxl.php'; global $client; $client = new JAXL(array( …
superuser
  • 519
  • 2
  • 5
  • 13
3
votes
1 answer

Jaxl class base callback

I want to implement Jaxl in my project as class, But all Jaxl examples are function based.All examples use closure to run callbacks.Methods in class are not accessible like function base programming.How can I call wait_for_register_form() in the…
realman
  • 95
  • 5
2
votes
2 answers

xmpphp XMPP, send message from php script

Hi I have a jabberserver and i would like to be able to push messages out to users from a php script. F.x. if i call script.php from my browser, it sends a message to a user. I've tried both with jaxl and xmpphp which are xmp frameworks, but i cant…
Danielss89
  • 863
  • 1
  • 11
  • 17
2
votes
1 answer

Not able to connect my app server to GCM's CCS using XMPPHP

Like push-notification(downstream message), I want to implement upstream messaging from my android device to my app server in php. I am using this XMPPHP library from Github to connect my app server to GCM's CCS. But when I try to execute below code…
2
votes
2 answers

How to receive Message using openfire server?

I am using Openfire(V 3.9.1) server to send notification from PHP to Android. I am receiving message in Android properly. But I am unable to receive and display reply message back to PHP. I am using XMPPHP library to send notification message from…
kammy
  • 352
  • 2
  • 10
2
votes
1 answer

How to create conference rooms in Openfire with XMPPHP?

I'm developing a system which at some point I'll have to allow users to create their own conference rooms. I was reading about create rooms and wrote some code with XMPP which results in the verbose log below. 1422017436 [VERBOSE]: Socket is ready;…
Alex M.
  • 635
  • 1
  • 6
  • 19
2
votes
1 answer

XMPPHP to Openfire

(This is my first ever question so please excuse the noobness) I have a Ubuntu VPS from DigitalOcean that I have Openfire installed and running. I'm trying to use XMPPHP to send alerts but it doesn't send the message. My…
1
vote
2 answers

JAXL XMPP Daemon to send and recieve messages

I have written a JAXL daemon in PHP (Debian 6.0) which sits and listens for messages coming in and then process the incoming message by passing the payload to an API. (listens for incoming messages on user1@server) The trouble I am having is then…
Michael Bates
  • 1,884
  • 2
  • 29
  • 40
1
2 3