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.
✅ 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.
✅ Edit profile: Update your profile picture, name, and password.
✅ View profile: See details of the person you are chatting with.
✅ Find contacts easily using the dynamic search bar.
✅ Manage contacts & see unread messages on the homepage.
✅ 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.
✅ Full message history when opening a chat.
✅ Delete or copy your own messages.
✅ Real-time syncing for a smooth messaging experience.
✅ View profile of the person you’re chatting with.
✅ Clear chat history with a specific user.
✅ Block user to prevent them from messaging you.
Follow these steps to set up PHP Social Messenger on your local server:
git clone https://github.com/Iqbolshoh/php-social-messenger.git
cd php-social-messenger
- Create a new MySQL database:
CREATE DATABASE social_messenger;
- Import the database schema:
mysql -u yourusername -p social_messenger < db/database.sql
- Open
config.php
and update your database credentials:define("DB_SERVER", "localhost"); define("DB_USERNAME", "root"); define("DB_PASSWORD", ""); define("DB_NAME", "social_messenger");
- Deploy on a PHP-compatible server (e.g., Apache, Nginx).
- Open your browser and go to:
http://localhost/php-social-messenger
🎯 Contributions are welcome! If you have suggestions or want to enhance the project, feel free to fork the repository and submit a pull request.
💬 I love meeting new people and discussing tech, business, and creative ideas. Let’s connect! You can reach me on these platforms: