Skip to content
RayiumirPublic

Latest commit

 

History

23 Commits

Folders and files

Repository files navigation

TaskSquad Logo

PHPChat

A simple chat application written in PHP.

Features

  • Real-time messaging using AJAX
  • Reply to messages with quoted previews
  • Mention users with @username (autocomplete, highlighting, and notifications)
  • 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

Disclaimer

The responsibility for the proper and legal use of PHPChat, as well as for respecting privacy, user rights, and applicable laws, lies entirely with the users.