Skip to content

harunabdullahrakin/Social-Media-App-Php

Repository files navigation

AMARWORLD — Social Platform in Pure PHP

Live Demo Built in PHP Responsive UI Deploy Ready


✨ Overview

AmarWorld is a full-featured, futuristic social media platform built with pure PHP and MySQL — no frameworks.
Think Instagram + Facebook in a clean, modern UI with complete backend logic and real-time features.

🌐 Live Demo: https://amarworld.me


🧩 Features

  • 📱 Story Bar – Like Instagram
  • 📝 Posts Feed – Likes, comments, media
  • 🎬 Shorts Uploads – Video-based content at /shorts
  • 💬 Real-Time Chat – AJAX-based messaging
  • 👤 User Profiles – Change bio, avatar, email, password
  • 🔐 Authentication – Login, register, forgot password (SMTP support)
  • 📶 Responsive UI – Mobile and desktop optimized
  • ☁️ Deploy Ready – Works great on AlwaysData, cPanel, NGINX servers

🖼️ Interface Samples

Replace these placeholders with real screenshots from your project.

Home Feed + Stories Realtime Chat
Feed Chat
Shorts Section Profile Editor
Shorts Profile

⚙️ Tech Stack

Layer Tech
Backend PHP (native)
Database MySQL
Frontend HTML, CSS, JS
Realtime AJAX
Mailing SMTP (PHPMailer)
Hosting NGINX / cPanel / AlwaysData

📦 Installation & Setup

1. Clone Repository

git clone https://github.com/harunabdullahrakin/Social-Media-App-Php.git

2. Configure Environment

  • Make sure your server has PHP 7.4+ and MySQL.
  • Enable required extensions: mysqli, mbstring, openssl, fileinfo, etc.
  • Edit /config/db.php and /config/smtp.php with your credentials.

3. Import MySQL Database

File location: config/mysql.sql

Using phpMyAdmin:

  1. Login to phpMyAdmin
  2. Create a database
  3. Import mysql.sql

4. Run Locally

php -S localhost:8000

Visit: http://localhost:8000


☁️ Deploying to Production

✅ Recommended Host: AlwaysData

  • Upload project via SFTP
  • Set project root to index.php
  • Use MySQL + SMTP config from panel

NGINX Example Config:

server {
    listen 80;
    server_name yourdomain.com;

    root /var/www/amarworld;
    index index.php;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.4-fpm.sock;
    }
}


🧑‍💻 Author

Harun Abdullah
🌐 harunabdullah.is-a.dev


📄 License

This project is open-source for educational and development use.
Please give credit if you use it publicly.

Built with passion — no frameworks, just raw PHP.

About

uh this is written in php.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published