A clean, modern, and responsive blogging platform built in Core PHP. Easily create, manage, and publish articles with category support, image uploads, user authentication, and a modern Bootstrap-powered interface.
- Beautiful, mobile-friendly public blog with Bootstrap 5 UI
- Admin dashboard for article & category management
- WYSIWYG article creation (title, content, image, categories, publish date)
- Article image upload, shown in articles and lists
- Category badges and management
- Pagination on both public and admin lists
- Contact form with PHPMailer support
- User authentication (login/logout)
- Clean, modular PHP code (no framework)
- Ready to run on XAMPP/Laragon/any LAMP local setup
Core_php_blog/
├── admin/ # Admin dashboard & article/category management
│ ├── index.php # Admin home/list articles
│ ├── new-article.php # Add new article form
│ ├── edit-article.php # Edit article
│ └── ...
├── classes/ # Project PHP classes (Article, Category, Auth, etc.)
├── css/ # Custom & 3rd-party CSS (Bootstrap is CDN)
│ └── styles.css
├── js/ # JS scripts (validation, datetimepicker, etc.)
├── include/ # Common includes (header, footer, db, pagination)
├── uploads/ # Uploaded article images (must be writable!)
├── article.php # Single public article view
├── index.php # Public blog/article list
├── contact.php # Contact form
├── login.php, logout.php # Authentication
├── config.php # Core project config
├── cms.sql # Database schema
└── README.md # This file
- Clone this repo:
git clone https://github.com/Umar-444/Core_php_blog.git
- Import the database:
- Use the provided
cms.sqlfile to create your MySQL tables.
- Use the provided
- Configure DB & SMTP:
- Update
/config.phpwith your database and SMTP email settings.
- Update
- Create the uploads folder:
- In your project root, create a folder named
uploads(make it writable:chmod 777 uploadson Linux/Mac, or set permissions in Windows).
- In your project root, create a folder named
- Run locally:
- Place the folder in your local webserver (e.g.,
C:/laragon/www/Core_php_blog/for Laragon) - Access via your browser:
http://localhost/Core_php_blog/
- Place the folder in your local webserver (e.g.,
- Login to Admin:
- Default user: create one directly via DB or
/create_user.phpscript if provided.
- Default user: create one directly via DB or
- When adding or editing an article, you can upload a featured image.
- Images are saved in
/uploads/and served automatically in articles and lists. - Make sure this folder exists and is writable (see Quick Start step 4).
Umar FarooQ
LinkedIn
GitHub (@Umar-444)
Email: Umarpak995@gmail.com
Feel free to reach out for issues, suggestions, or collaboration! If you use or modify this project, please star and share :)