Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Tutorial code and cookbook classes for Ratchet

branch: master

Merge pull request #7 from enko/patch-1

Provide some links for the external dependencies
latest commit e141c6fa43
Chris Boden authored
Octocat-spinner-32 bin Fix namespaces so that the sample doesn't fatal January 07, 2013
Octocat-spinner-32 src Fixed mistyped Closure. December 18, 2012
Octocat-spinner-32 tests Init unit tests July 23, 2012
Octocat-spinner-32 .gitignore [Website] Port logger July 23, 2012
Octocat-spinner-32 README.md Provide some links for the external dependencies September 24, 2013
Octocat-spinner-32 composer.json Use stable Ratchet September 07, 2012
Octocat-spinner-32 composer.lock Lock file update November 29, 2012
Octocat-spinner-32 phpunit.xml.dist Init unit tests July 23, 2012
README.md

Installation

If you'll be running the website IRC chat demo make sure to run composer with dev mode:

composer.phar install --dev

bin/

Run scripts in here to launch you socket server.

src/

PSR classes. These are the logic of applications. The Tutorial folder contains example applications found on http://socketo.me and the Cookbook has useful middleware classes (such as a logger).

webpages/

HTML/Javascript pages to interact with a running Ratchet server using the WebSocketComponent. (coming soon)


Vendor Support

Ratchet Examples comes with a lot of composer dependencies. Here is a list of what each one's purpose is:

AutobahnJS

AutobahnJS is the JavaScript library to be used in conjunction with the WAMPServerComponent. It provides an Pub/Sub and RPC sub-protocol on top of WebSockets.

When

When is a JavaScript library required by AutobahnJS for deferred calls.

web-socket-js

A Flash polyfill for WebSockets. Drop this in and if WebSockets aren't supported by the user's browser this library uses Flash to make the browser talk with your Ratchet app. Make sure, if using this library, to run a second Ratchet application using the FlashPolicyComponent. Flash Sockets, before communicating in WebSockets, need pre-authorization.

Monolog

Monolog is an feature rich, abstract logging library for PHP. It is used in one of the Cookbook source code examples.

Guzzle

Guzzle is a PHP library meant for abstracting cURL calls and working with RESTful APIs...Ratchet requires Guzzle to act as its HTTP server!

Ratchet

Build your PHP WebSocket library!

Something went wrong with that request. Please try again.