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.
- Host: GitHub
- URL: https://github.com/rayiumir/phpchat
- Owner: Rayiumir
- License: mit
- Created: 2026-01-26T19:02:47.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2026-01-27T23:19:25.000Z (4 months ago)
- Last Synced: 2026-01-28T12:49:33.771Z (4 months ago)
- Topics: chat, chat-app, chat-application, chatapp, chatroom, php, php-chat, php-chat-app, php-chat-application, php-chat-messaging-authentication, php-chatroom, php8, phpchat
- Language: JavaScript
- Homepage:
- Size: 826 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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