Invitation landing page for XMPP (without javascript!)
index: decode xmpp%3a uri if encoded
URIs: Add Contact Invitation with IBR
URIs: Add register URIs


browse  log 



You can also use your local clone with git send-email.

#PHP XMPP Invitation Landing Page

This is an XMPP invitation landing page that client developers or XMPP server admins can host on their servers. It allows users to send XMPP invitations (contacts or chat rooms) to people who do not have an XMPP client yet. This is part of the Easy XMPP initiative to improve the "first contact" experience.

For the JID romeo@xmpp.example, it will create the following page (live example):

#Invitation from Romeo

#Romeo has invited you to chat

[Add Romeo to Contact List]


If this link does not work, you need to install and configure an XMPP client, and visit this page again afterwards.

[snipped client list and disclaimer]

#Principal operation

  • Romeo clicks on his XMPP client's "Create Invitation" button
    • The server provides the URI, and
    • either the server provides an invite web page link, or the client transforms the link into a landing page link.
  • Romeo sends the resulting invitation link via E-Mail, SMS, QR-Code, A5S2 messenger or any other means to Juliet.
  • Juliet opens the link in a web browser, which has a button linking to the xmpp: URI
    • If Juliet has an XMPP client, it will handle the button click and open the "Add to roster" dialog
    • If Juliet does not have an XMPP client, the link won't work. She must install a client and return to the link later

#Supported URIs

#Design decisions

  • The (privacy sensitive) JID and parameters are put into the Query String, which is transmitted to the hosting server
  • The fragment is parsed by the receiving server, this doesn't require JavaScript
  • User agent string is parsed server-side.

#Privacy considerations

Don't use an instance from an untrusted server administrator. A malicious server administrator could use the URI (just the same as someone who intercepted the message).


This project was forked from easy-xmpp-invitation, which implements this with client-side javascript.


This code is licensed under the MIT License.