An open API service indexing awesome lists of open source software.

https://github.com/rayiumir/phpchat

A simple chat application written in PHP.
https://github.com/rayiumir/phpchat

chat chat-app chat-application chatapp chatroom php php-chat php-chat-app php-chat-application php-chat-messaging-authentication php-chatroom php8 phpchat

Last synced: 11 days ago
JSON representation

A simple chat application written in PHP.

Awesome Lists containing this project

README

          





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
```bash
git clone https://github.com/Rayiumir/phpchat.git
cd PHPChat/
```

2. 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