Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tonysm/mychat-php

A chat app using Websocket with Ratchet (not using NodeJS)
https://github.com/tonysm/mychat-php

Last synced: about 1 month ago
JSON representation

A chat app using Websocket with Ratchet (not using NodeJS)

Awesome Lists containing this project

README

        

# Chat app using just PHP and WebSocket

## Instalation
To start, do as follows:

* give execution permition to the bin websocket server, like so: $ chmod +x ./bin/websocketserver
* run $ composer install
* run $ bin/websocketserver 8888 to start the websocket server at the port 8888 (the default port)
* run $ php -S localhost:8000 -t ./public to start a webserver in PHP at port 8000
* open the project in the browser using the url you configured (http://localhost:8000/) and login in the chat

Note: to test the interaction, use a different tab in the browser and login with a different username :)

### Warning
if you change the port, you also have to change it in the JS file at public/js/app.js

## Using
* PHP
* Ratchet (php websocket server)
* Twitter Bootstrap