PHP + Swoole simple chat room

Disclaimer: This article is the original article, please indicate the source transfer (http://blog.csdn.net/kesixin) https://blog.csdn.net/kesixin/article/details/79557300

Chatroom

PHP + Swoole develop a simple chat room demo, mainly websockt applications.

Environmental requirements

  • PHP >= 7.0
  • Swoole
  • composer

project address

https://github.com/kesixin/Chatroom

installation

git clone https://github.com/kesixin/Chatroom
composer install

Start websockt

cd ./webim
php webim_server.php

Enable PHP built-in server

cd ./public
php -S localhost:8000

Browser to access localhost: 8000 to enter chat

Screenshot

Renderings

Project Test address

http://test.kesixin.xin/ , because they did not open the port, may not work, you need to contact!

Original link: http://blog.kesixin.xin/article/58

Guess you like

Origin blog.csdn.net/kesixin/article/details/79557300