Open Chat is a real-time chat application built with PHP and PHP Ratchet. It provides seamless and responsive messaging capabilities, featuring various functionalities that enhance user interaction and communication.
- Real-time Messaging: Instant communication with live updates.
- User Authentication: Secure user registration and login.
- Responsive Design: Optimized for both desktop and mobile devices.
- File Sharing: Share images, documents, and other files directly in the chat.
- Backend: PHP
- WebSockets: PHP Ratchet
- Frontend: HTML5, CSS3, JavaScript
- Database: MySQL
- PHP 7.4 or higher
- Composer
- MySQL
-
Clone the repository:
git clone https://github.com/GoldenThrust/open_chat.git cd open_chat
-
Install dependencies using Composer:
composer install
-
Set up the database:
- Import the provided SQL file to your MySQL database.
- Update database credentials in the configuration file (e.g.,
config.php
).
-
Start the Ratchet server:
php bin/chat-server.php
-
Access the application: Open your browser and navigate to the application URL (e.g.,
http://localhost/open_chat
).
-
Register a new user:
- Open the registration page and fill in the required details.
-
Log in with your credentials:
- Access the login page and enter your username and password.
-
Start chatting:
- Send and receive messages in real-time.
We welcome contributions from the community. To contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature-branch
). - Open a pull request.