Skip to content

πŸ’¬ PHP Social Messenger is a real-time ⚑ chat application built with PHP, MySQL πŸ›’οΈ, and AJAX πŸ”„. It supports: πŸ“¨ Instant messaging πŸ™‹β€β™‚οΈ Profile management πŸ” Contact search β›” User blocking 🧩 RESTful API for easy integration πŸš€

Notifications You must be signed in to change notification settings

Iqbolshoh/php-social-messenger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’¬ PHP Social Messenger

PHP Social Messenger is a real-time messaging application that allows users to chat with each other, edit profiles, and manage contacts. It offers a user-friendly interface for sending & receiving messages, handling blocked users, and managing profiles. Built with PHP, MySQL, and JavaScript (AJAX), it ensures smooth real-time interactions. The app also includes a RESTful API for seamless integration with other services.

✨ Features

1️⃣ Real-Time Messaging ⚑

βœ… Instant updates: Messages appear instantly without refreshing.
βœ… Message status: Shows the last sender and unread message count.
βœ… Message actions: Users can edit, delete, or copy their own messages.

Real-Time Messaging

πŸ”‘ Login Page

Real-Time Messaging

πŸ›  Default Users for Demo

πŸ‘€ Username πŸ”‘ Password πŸ“ Description
iqbolshoh IQBOLSHOH Developer
client IQBOLSHOH Test User One
user_3 IQBOLSHOH Test User Two

2️⃣ Profile Management πŸ‘€

βœ… Edit profile: Update your profile picture, name, and password.
βœ… View profile: See details of the person you are chatting with.

Profile Management

3️⃣ Contact Search πŸ”

βœ… Find contacts easily using the dynamic search bar.
βœ… Manage contacts & see unread messages on the homepage.

Contact Search

4️⃣ Block Users 🚫

βœ… Block people from sending you messages.
βœ… Blocked notifications: Users get alerts if they try to message someone who blocked them.
βœ… Easily accessible block menu in the chat interface.

Block Users

5️⃣ Chat Interface πŸ’¬

βœ… Full message history when opening a chat.
βœ… Delete or copy your own messages.
βœ… Real-time syncing for a smooth messaging experience.

Chat Interface

6️⃣ Menu Options πŸŽ›οΈ

βœ… View profile of the person you’re chatting with.
βœ… Clear chat history with a specific user.
βœ… Block user to prevent them from messaging you.

Menu Options


βš™οΈ Installation Guide πŸ› οΈ

Follow these steps to set up PHP Social Messenger on your local server:

1️⃣ Clone the Repository πŸ“₯

git clone https://github.com/Iqbolshoh/php-social-messenger.git

2️⃣ Navigate to the Project Directory πŸ“‚

cd php-social-messenger

3️⃣ Set Up the Database πŸ—„οΈ

  • Create a new MySQL database:
    CREATE DATABASE social_messenger;
  • Import the database schema:
    mysql -u yourusername -p social_messenger < db/database.sql

4️⃣ Configure Database Connection ⚑

  • Open config.php and update your database credentials:
    define("DB_SERVER", "localhost");
    define("DB_USERNAME", "root");
    define("DB_PASSWORD", "");
    define("DB_NAME", "social_messenger");

5️⃣ Run the Application πŸš€

  • Deploy on a PHP-compatible server (e.g., Apache, Nginx).
  • Open your browser and go to:
    http://localhost/php-social-messenger

πŸ–₯ Technologies Used

HTML CSS Bootstrap JavaScript jQuery PHP MySQL

πŸ“œ License

This project is open-source and available under the MIT License.

🀝 Contributing

🎯 Contributions are welcome! If you have suggestions or want to enhance the project, feel free to fork the repository and submit a pull request.

πŸ“¬ Connect with Me

πŸ’¬ I love meeting new people and discussing tech, business, and creative ideas. Let’s connect! You can reach me on these platforms:

About

πŸ’¬ PHP Social Messenger is a real-time ⚑ chat application built with PHP, MySQL πŸ›’οΈ, and AJAX πŸ”„. It supports: πŸ“¨ Instant messaging πŸ™‹β€β™‚οΈ Profile management πŸ” Contact search β›” User blocking 🧩 RESTful API for easy integration πŸš€

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published