Skip to content

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

Notifications You must be signed in to change notification settings

tonysm/mychat-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published