Skip to content

Rayiumir/phpchat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TaskSquad Logo

PHPChat

A simple chat application written in PHP.

Features

  • Real-time messaging using AJAX
  • User authentication with username only
  • Automatic message cleanup (removes oldest messages when exceeding 20)
  • Emoji support with built-in emoji picker
  • Cross-Origin Resource Sharing (CORS) enabled
  • Secure database operations using PDO prepared statements
  • Responsive design for mobile and desktop
  • Recent emojis stored in localStorage
  • Auto-scrolling to latest messages
  • Duplicate message prevention
  • And simple and hassle-free installation

Installation

  1. Clone the repository
git clone https://github.com/Rayiumir/phpchat.git
cd PHPChat/
  1. Create a database with the name phpchat for DB_NAME.
  2. Create User Account for DB_USER and DB_PASSWORD.
  3. import the database.sql file into your database.

Screenshots

Username Room Chat
Username Room Chat