Skip to content

sahangeesara/Blog_OOP_PHP

Repository files navigation

📝 Blog System (OOP PHP)

This project is a simple Blog Management System developed using Object-Oriented Programming (OOP) in PHP. It was created as part of an internship interview task to demonstrate understanding of OOP concepts, MVC-style structure, and PHP web development.

The system allows users to create, update, and manage blog posts with a simple and clean structure.


🚀 Features

  • 🔐 User authentication (Login system)
  • ✍️ Create blog posts
  • ✏️ Update blog posts
  • 📄 View blog posts
  • 🗂 Organized project structure using OOP principles
  • 🎨 Simple frontend with CSS

🛠️ Technologies Used

Programming Language

  • PHP (Object-Oriented Programming)

Frontend

  • HTML
  • CSS

Concepts Used

  • OOP (Classes & Objects)
  • MVC-style structure
  • Authentication handling
  • CRUD operations

📂 Project Structure

Blog_OOP_PHP
│
├── auth/              # Authentication logic
├── components/        # Reusable components
├── config/            # Database configuration
├── controllers/       # Application controllers
│
├── css/               # Stylesheets
├── images/            # Blog images
│
├── login/             # Login pages
├── user/              # User management
│
├── admin.php          # Admin dashboard
├── create.php         # Create blog post
├── update.php         # Update blog post
├── message.php        # Messages
├── index.php          # Main blog page
│
├── .htaccess          # Apache configuration
└── README.md

⚙️ Installation

1️⃣ Clone Repository

git clone https://github.com/sahangeesara/Blog_OOP_PHP.git

2️⃣ Move Project to Server

Place the project folder inside:

xampp/htdocs/

or

wamp/www/

3️⃣ Configure Database

Edit database settings inside:

config/database.php

Example:

$host = "localhost";
$user = "root";
$password = "";
$database = "blog_db";

4️⃣ Run the Project

Open your browser:

http://localhost/Blog_OOP_PHP/

🎯 Purpose of the Project

This project was created to demonstrate:

  • Understanding of Object-Oriented Programming in PHP
  • Ability to structure a small MVC-style web application
  • Implementation of CRUD operations
  • Basic authentication system

👨‍💻 Developer

Sahan Geesara

  • PHP Developer
  • Full Stack Developer

📍 Sri Lanka


About

OOP Php

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors