Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/tonysm/mychat-php
- Owner: tonysm
- Created: 2013-06-13T01:56:43.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-08-26T20:47:54.000Z (about 10 years ago)
- Last Synced: 2024-05-01T20:22:19.096Z (7 months ago)
- Language: PHP
- Size: 177 KB
- Stars: 12
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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 chatNote: 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