Interacting with XMPP using PHP

21,369 views
21,309 views

Published on

Slides from my talk about interacting with XMPP using PHP, which I gave at Bangalore PHP meetup.

Published in: Technology
2 Comments
2 Likes
Statistics
Notes
  • Hi Sudar,

    i got the contact list as below, please help me what's error in first line and how to develop the chat list like as gmail

    OSType: Windows, Unable to register shutdown functions, try moving to a linux box OpenSSL: Enabled for CLI Starting TLS Encryption... Attempting PLAIN Authentication... Starting Session... Requesting Feature List... Requesting Roster List... Setting Status... Array ( [0] => shaik@gmail.com [1] => harta@gmail.com [2] => test@gmail.com ) Done
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Hi Sudar,

    i got the contact list from Google server,

    Many Thanks.............
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total views
21,369
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
167
Comments
2
Likes
2
Embeds 0
No embeds

No notes for slide

Interacting with XMPP using PHP

  1. 1. Interacting with XMPP Servers using PHP<br />Sudar Muthu (@sudarmuthu)<br />http://sudarmuthu.com<br />Research Engineer<br />Yahoo Research<br />Bangalore PHP Meetup – 26 June 2010<br />
  2. 2. Agenda<br />What is XMPP?<br />Who uses XMPP<br />Features<br />Components<br />XMPP Stanzas<br />Code/Demo<br />Why?<br />Questions<br />
  3. 3. What is XMPP?<br /> XMPP is a protocol for moving small, structured pieces of data between two places.<br /> It is mainly used for Instant messaging, multi-user chatting, voice and video conferencing, collaborateive spaces, real-time gamming etc.<br />
  4. 4. Who uses XMPP<br />Google (Gmail, AppEngine, Google Wave Protocol)<br />Facebook (chat)<br />Friendfeed (Notification)<br />Identica (Twitter Clone)<br />Yammer<br />Chesspark (Real-time game)<br />
  5. 5. Features of XMPP<br />Decentralization<br />Real-time<br />Open standards<br />Security<br />Flexibility<br />Extensibility<br />Libraries available for all major languages<br />
  6. 6. Components of XMPP<br />Servers<br />Clients<br />Components<br />Plugins<br />
  7. 7. XMPP Stanzas<br />Presence Stanzas<br /> <presence type=“available” /><br />Message Stanzas<br /><message from=“from@example.com” to =“to@example.com”><br /> <body>Hello</body><br /></message><br />IQ Stanzas<br /><iq from=“from@example.com” type =“get” id =“roster1”><br /> <query xmlns=“jabber:iq:roster”/><br /></iq><br />
  8. 8. Cut the scrap, show me the code<br />Demo available at http://sudarmuthu.com/demos/xmpp/gmail.php<br />
  9. 9. Why use XMPP in web applications?<br />Real-time data<br />Push, instead of pull<br />Extensible<br />Built for concurrent users<br />
  10. 10. Questions<br />Thank you<br />

×