Skip to content

Latest commit

Β 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🏠 PGLife - Find the Best PGs Easily!

PGLife is a PHP & MySQL-based web application that helps students and professionals find PG (Paying Guest) accommodations easily in different cities.


πŸš€ Features

βœ… 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


πŸ›  Technologies Used

  • Frontend: HTML, CSS, Bootstrap
  • Backend: PHP (Core PHP)
  • Database: MySQL
  • Server: Apache (XAMPP / LAMP)

πŸ— Installation Guide

1️⃣ Clone the Repository

git clone https://github.com/Sachin2501/PGLife_with-_react.git

2️⃣ Setup MySQL Database

  1. Open phpMyAdmin πŸ‘‰ http://localhost/phpmyadmin/
  2. Create a new database named pglife
  3. Go to the Import section
  4. Click Choose File and select pglife.sql (inside the project folder)
  5. Click Go to import the database
  6. βœ… 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");

Save the file and restart Apache/MySQL in XAMPP. βœ…

4️⃣ Start the Project

  1. Start Apache & MySQL in XAMPP
  2. Open your browser and go to:
http://localhost/PGLife/

πŸŽ‰ Enjoy using PGLife!


🌎 Deployment Guide Deploy on Render (Free Cloud Hosting)

  1. Create a free account on Render
  2. Click on "New Web Service"
  3. Connect your GitHub repository
  4. Set Environment = PHP 8.x
  5. Configure MySQL Database & Update database_connect.php
  6. Click Deploy βœ…

For other deployment methods, check the Deployment Guide.

πŸ“Έ Screenshots 🏠 Homepage πŸ” PG Listings

🀝 Contributing Want to improve PGLife? Follow these steps:

  1. Fork this repository
  2. Create a new branch (feature-branch)
  3. Make changes and commit
  4. Submit a Pull Request (PR)

πŸ“§ Contact For any queries or support ,feel free to contact: πŸ“§ Email: sachinkumar.gheura@gmail.com

πŸ”— Live Demo: pglife.example.com πŸš€

πŸ“Œ Step 3: Save & Push to GitHub

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

About

πŸš€ PGLife - Find the Best PGs Easily! A PHP & MySQL-based web app that helps students and professionals find PG (Paying Guest) accommodations in different cities.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages