Code Monkey home page Code Monkey logo

xmpphp's Introduction

Getting Started With XMPPHP

XMPPHP is a fork of svn://netflint.net/xmpphp. This is an elegant PHP library for XMPP (aka Jabber, Google Talk, etc).

Author: Nathan Fritz, jabber id: fritzy [at] netflint.net Co-Author: Stephan Wentz, jabber id: stephan [at] wentz.it Maintainer of this fork: Alexander Birkner

Prerequisites

  • PHP 5.3.2 or newer
  • SSL Support Compiled

Installation

Installation is a quick and easy 2 steps process:

  1. Install XMPPHP
  2. Use it

Step 1: Install XMPPHP

The preferred way to install this bundle is to rely on Composer. Just check on Packagist the version you want to install (in the following example, we used "2.0-dev") and add it to your composer.json:

{
    "require": {
        // ...
        "tyrola/xmpphp": "2.0-dev"
    }
}

Step 2: Use it

This sample shows how to send a Jabber message to a user.

<?php


require_once './vendor/autoload.php';

$XMPP = new \BirknerAlex\XMPPHP\XMPP('jabber.domain.com', 5222, 'firstname.lastname', 'MySecretPassword', 'PHP');

$XMPP->connect();
$XMPP->processUntil('session_start', 10);
$XMPP->presence();
$XMPP->message('[email protected]', 'Hello, how are you?', 'chat');
$XMPP->disconnect();

Please feel free to add more samples to this Github Repository.

TODO

  • MUC Support

License Exception

Please contact Nathan Fritz for library exceptions if you would like to distribute XMPPHP with a non-GPL compatible license.

xmpphp's People

Contributors

bandroidx avatar birkneralex avatar cweiske avatar jonrwads avatar roest01 avatar superwayne avatar tyranron avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.