https://github.com/techreagan/twitter-clone-php
A twitter clone with basic functionality like tweet, like tweet, following system etc.
https://github.com/techreagan/twitter-clone-php
htaccess html-css-javascript mysql pdo php twitter twitter-clone-app
Last synced: 1 day ago
JSON representation
A twitter clone with basic functionality like tweet, like tweet, following system etc.
- Host: GitHub
- URL: https://github.com/techreagan/twitter-clone-php
- Owner: techreagan
- Created: 2018-11-11T12:30:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-11T19:30:33.000Z (over 6 years ago)
- Last Synced: 2025-04-18T01:48:07.068Z (7 days ago)
- Topics: htaccess, html-css-javascript, mysql, pdo, php, twitter, twitter-clone-app
- Language: PHP
- Size: 1.34 MB
- Stars: 25
- Watchers: 2
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Twitter Clone
A twitter clone with basic functionality like tweet, like tweet, following system etc.
## Development
Built with vanilla javascript, myql and [Boss PHP mini Framework](https://github.com/techreagan/Boss)## Screenshot



## Installation
Import the twitter.sql to your mysql database### Fontawesome
Download fontawesome and include it in public/css/ the complete fontawesome folder### Configuration File
Modify the app/config/config.php file according to your database credentials and also your root url
``` PHP
//Database Configuration
define('DB_HOST', '_YOUR_HOST');
define('DB_USER', '_YOUR_DATABSE_USERNAME');
define('DB_PASS', '_YOUR_DATABASE_PASSWORD');
define('DB_NAME', '_YOUR DATABASE_NAME');
// App Root
define('APPROOT', dirname(dirname(__FILE__)));
// URL Root
define('URLROOT', '_YOUR_URL_');
```### Htaccess file
Modify the .htaccess file inside the public folder to match the name of your installation folder, Modify only the RewriteBase.
```
Options -Multiviews
RewriteEngine On
RewriteBase /twitter/public
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]```
### Javascript files
Modify the javascript files in public/js. Change the url to your url. Files to modify, index.js, follow.js, search.js and profile.js
```Javascript
let url = 'http://localhost:8888/twitter/';
```