Twitter Clone in PHP MySQL with Source Code

A fully functional project based on social networking service “Twitter” which uses PHP Language. Following PHP project contains all the essential features which can be in use for the final-year IT students for their college projects. It has a number of features that will allow users to interact just like on other social networking sites. This system as well as the website’s concept is all clear. It’s the same as real-life scenarios and well-implemented on it. To download free Twitter Clone project in PHP MySQL with source code files, please scroll down to the bottom of this post for the Download button.

About Social Networking Site Twitter Clone PHP Project

In particular, this Twitter Clone project in PHP MySQL focuses mainly on tweet-related services. Also, the website displays all the tweets with their respective details. In addition, the site allows user registration, follow-unfollow, retweets, comment, like, and more. Evidently, this project only contains client-side. In an overview of this website, a user can simply register with their unique usernames. He/she can search and follow other available users. In fact, the best thing about this project is tweets and retweets. All the users can share their tweets or retweet other users’ tweets. Here, this site project allows users to share images too; meaning users can share tweets with an image attachment just like the real ones.

Retweet, Quote Tweet, Like Tweet

With it, here comes an important section of this project. The very first thing to mention out here is that each user can retweet and quote other users’ tweets. It’s quite simple and worth mentioning because this whole thing is the main part of Twitter as it makes them unique from others. Regarding UI, it is quite similar to the real ones as the user can simply add their own text and quote it. And as a result, the website displays the main user’s tweet content covered other users’ touch with it. Also, the user can like other available public tweets. With the help of Ajax, JQuery the likes number are displayed instantly without reloading the website.

Mention, Hashtags, Comment Tweet

Moving on, this project is not just limited to tweets and user registration. But, it’s more than that, where people can actually mention other users in their tweets. Talking about hashtags, any user can create hashtags in their comments. Here, each hashtag has its own UI style similar to the real one which in fact makes the thing much clear and easier to differentiate. In addition to it, the users can also comment on each other’s tweets, but the difference here is that this project does not support emojis. Also, the project allows viewing total likes and their respective account names. These three-section has almost the same features as Twitter except for some advanced updated features.

Follow, Unfollow Users, Notifications

On one hand, a user can use the search bar in order to search available results. Here, the users can also follow and unfollow each user with ease. With it, each follows and unfollows action, the system generates total followers and following in real-time. In fact, the site allows Twitter users to check his/her followers and following list. After mentioning these features, it is sure that such features require some kind of notification to alert the users. So, this Twitter clone project provides notification services to its users. To be more precise, every user receives notifications for their actions which include following, retweeting, quote tweets, likes, and comments. Also, the site users can view a total number of unseen notifications displayed with a badge counter.

Update Profile and Others

On the other hand, this cloning project allows updating profiles too. Under this, the system includes certain topics like email, username, avatar, and cover. In fact, the users can update their avatars and covers without any hesitation. Regarding system settings, the user can make changes to their usernames, password, and email. Moreover, the system displays three random user accounts under the recommendation section named as whom to follow. The list gets updated with each page refresh too. This particular section is a total clone from the real Twitter except this clone has random user settings whereas the real one comes with its own algorithms. Besides, each user can view each other’s details such as their shared tweets, media, and the contents they liked from the profile section.

Last but not least, a clean, simple, and similar Twitter UI is presented with similar color combinations for greater user experience while using this Twitter Clone Project in PHP MySQL. For its UI elements, a free open-source CSS framework; Bootstrap is on board with some Vanilla CSS too. Presenting a new Social Networking Site Project in PHP MySQL which includes a client-side that contains all the essential features to follow up, and a knowledgeable resource for learning purposes.

Available Features:
  • User Registration
  • Post Tweets (Normal and Images)
  • Retweet and Quote Tweets
  • Like and Comment Tweets
  • Mention Users, Hashtags
  • Receive Notifications
  • Like and Comments Counter
  • Search Users
  • Follow and Unfollow Users
  • List Following and Followers
  • Manage User Profile
  • View User’s Liked Content
  • Set Avatar, Cover Photo
  • Change Password
Project Name:Social Networking Site “Twitter Clone”
Technologies Used:PHP with AJAX, JQuery
PHP version (Recommended):5.6, 7.4
Database:MySQL
Type:Website
Developer:Amin Yasser
Updates:0
Twitter Clone PHP Project Overview

Instructions: How to Run?

  • After you finish downloading the project, unzip the project file and head over to your XAMPP directory.
  • There you’ll find a folder naming “htdocs”.
  • Inside the “htdocs” folder, paste the project folder (not the .zip one, but the extracted one).
  • Open your favorite browser; we recommend using Google Chrome or Mozilla Firefox.
  • Then, go to URL “http://localhost/phpmyadmin“.
  • Create a Database with a name that is provided inside the “01 LOGIN DETAILS & PROJECT INFO.txt”.
  • Click on the “Import” tab and choose the database file (.sql) which is provided under the folder naming “DATABASE FILE”.
  • After setting up all these, go to URL “http://localhost/[ PROJECT_FOLDER_NAME ]/“
  • All the login details are provided inside the project folder, check that out and enter in order to use it.

And there you have it, a full setup of the Social Networking Site Twitter Clone project using PHP MySQL. For this particular PHP project, PHP Version 5.6 or 7 is required because the project does not operate with the oldest PHP version. So, users with the oldest PHP version (older than 5.6) might face various problems while operating it. As a result, you’ll need to manage your PHP version (only if you’re using the old version) at the moment. Also, Download Free Twiter Clone Project in PHP MySQL Source Code. So, this social networking site PHP project is a fully functional project for all the intermediate levels that broads vast knowledge into such PHP web applications. In conclusion, this whole PHP project with free source code is an absolute project and a meaningful way for the users to learn and explore more about it.

Free Download Twitter Clone Project in PHP MySQL with Source Code:
Click the Download Button Below to Start Downloading

Note: Only for Educational Purpose

53 comments

  1. Hi! Sir. First, A great code!! My congratulations.

    Two questions, one, comments button(in a popup) not working for me. Maybe I did something wrong. second, how I create a popup what open in every click?

    Thank you very much…

    1. sir, I have small doubt…. that is In the instructions when you click on the import tab, after importing that tweetphp file(.sql) after that… Did you click “Go” button right?

  2. sir, Actually I am submitted this TwitterClone project to my college. Can you please do the instructions into a video? Please, sir, It’s my humble request.

  3. Sir, the Twitter logo is not getting while opening the front page…it shows a box without an image. and when I’m clicked go button after it shows an error in the database that is (CREATE TABL………………………………………. this… how to solve this?
    please help me sir…

      1. Sir, I did not change anything…I’m just followed the instructions and it is not showing Twitter logo(bird)

          1. Sir, Actually it displaying an error in the database…After clicking the “Go” button in the import tab.

  4. Sir, after login profile and setting modules are not working and notification symbols, home symbol and above… are not showing and it showing boxs without image…

  5. Sir, twitter logo is not showing it showing just box without image and profile ,setting modules are not working and it showing 404 error(NOT FOUND error) and also images are not showing not only twitter logo but also home, notification, profile, setting symbols. Please help me sir….

  6. Sir,this is the last month I have for the project submission.Please help me to complete this project successfully.
    I’m requesting… Sir, please…

          1. Sir, I did what you said. But it shows only 55 queries are executed. Maybe that is the problem that’s why it is not showing symbols(box without image) of home, notifications, Twitter bird, and settings. Settings and profile modules are not working and the comment section also not working. Only these are the problems…please look at it Sir, please…

  7. Comment Tweets ,Like and comments counter, Search users, list following and followers, manage user profile, View Users liked content, set avatar, Cover photo ,change Password. and remaining things are mentioned in above comment Sir. Other than this everything is OK.

  8. Particularly I’m not installed any PHP version Sir. which PHP version have to install I mean it is 7.4.But thread safe or non thread safe. I don’t know anything about PHP versions. Can you please tell me about which one have to install and how.

  9. Sir, I’m installed php version 7.4. Is there any other instructions to follow after installing the php version 7.4 like any other system settings or config changes.

  10. THANK YOU Sir for your kind help.
    Project running successfully…But i have small doubt that is, In signup we are using MAIL right([email protected]) why don’t we use GMAIL in place of MAIL.

  11. Fatal error: Uncaught PDOException: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`tweetphp`.`follow`, CONSTRAINT `follow_ibfk_2` FOREIGN KEY (`following_id`) REFERENCES `users` (`id`) ON DELETE…………….

    Why it showing this after I tested to login?
    but If, I refresh the page the home.php shows up
    Still How do i Solve the Issue?

      1. It came after I logged in index.php
        The problem is happening in Line:45 HandleSignUp

        as PHP is not my main language to work on that why I don’t know my PHP Version

        1. First, open command prompt.
          Second, Locate the directory [Xampp folder] using cd “C:/Xampp/php” or it might be different.
          And simply type the command “php -v” You’ll get your PHP version!

  12. Connection failed: SQLSTATE[28000] [1045] Access denied for user ‘rickthor’ @’ localhost ‘ (using password: NO)

    Can u help me

      1. Pls I’m having issue configuring the page upload page to accept more than one image but it showing error can I get help on it
        Thank you

Leave a Reply

Your email address will not be published. Required fields are marked *