A real-time Talker PHP client
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
README.md
exampleclient.php
examplelistener.php

README.md

Talker PHP Client

A real-time Talker PHP client. Wraps the Talker protocol and provides methods both to talk, and to listen in on a room with event callbacks.

For simple talking

  1. Get a Talker account at https://talkerapp.com/signup

  2. Get your Talker Token on https://myaccount.talkerapp.com/settings

  3. Connect to a room and talk:

    $talker = new Talker(); $talker->connect("Room name","Talker token"); $talker->send_message("Greetings");

To listen

  1. Create a listener class that extends BaseListener.

  2. Provide a method for any of the events you want to handle.

  3. Tell Talker to start listening, and provide your listener object:

    $listener = new MyListener(); $talker->listen($listener);

Examples

See exampleclient.php and examplelistener.php.

License

Released under the MIT license.

Credits

Thanks to http://github.com/macournoyer/ for Talker.rb. Was helpful in getting this written.