PGLife is a PHP & MySQL-based web application that helps students and professionals find PG (Paying Guest) accommodations easily in different cities.
β
User Authentication β Login & Signup System
β
PG Listings β View available PGs by city
β
Advanced Search & Filters β Find the perfect PG based on preferences
β
PG Details Page β View details, images, and reviews
β
Booking & Contact Option β Users can book or contact the owner
β
Admin Panel β Manage PG listings and users
- Frontend: HTML, CSS, Bootstrap
- Backend: PHP (Core PHP)
- Database: MySQL
- Server: Apache (XAMPP / LAMP)
git clone https://github.com/Sachin2501/PGLife_with-_react.git2οΈβ£ Setup MySQL Database
- Open phpMyAdmin π http://localhost/phpmyadmin/
- Create a new database named pglife
- Go to the Import section
- Click Choose File and select
pglife.sql(inside the project folder) - Click Go to import the database
- β Done! Your MySQL database is now set up π
3οΈβ£ Configure Database Connection
Edit the file includes/database_connect.php and update the database connection:
$conn = mysqli_connect("localhost", "root", "", "pglife");
If you're using XAMPP, use:
$conn = mysqli_connect("127.0.0.1", "root", "", "pglife");
4οΈβ£ Start the Project
- Start Apache & MySQL in XAMPP
- Open your browser and go to:
http://localhost/PGLife/
π Enjoy using PGLife!
π Deployment Guide Deploy on Render (Free Cloud Hosting)
- Create a free account on
Render - Click on "New Web Service"
- Connect your GitHub repository
- Set Environment = PHP 8.x
- Configure MySQL Database & Update
database_connect.php - Click Deploy β
π€ Contributing Want to improve PGLife? Follow these steps:
- Fork this repository
- Create a new branch
(feature-branch) - Make changes and commit
- Submit a Pull Request (PR)
π§ Contact For any queries or support ,feel free to contact: π§ Email: sachinkumar.gheura@gmail.com
After adding this content, save the README.md file and push it to GitHub:
1. git add README.md
2. git commit -m "Added README documentation"
3. git push origin main # or your branch name