https://github.com/short-zed/room-rent-management-php-sql-
A PHP-based web app to calculate and manage room rent with electricity bills. Features record tracking (ordered by date, descending), PDF export with TCPDF, and rent trend visualization using Chart.js.
https://github.com/short-zed/room-rent-management-php-sql-
php rent-management sql web-application
Last synced: about 1 month ago
JSON representation
A PHP-based web app to calculate and manage room rent with electricity bills. Features record tracking (ordered by date, descending), PDF export with TCPDF, and rent trend visualization using Chart.js.
- Host: GitHub
- URL: https://github.com/short-zed/room-rent-management-php-sql-
- Owner: Short-Zed
- Created: 2025-03-20T18:49:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-20T23:13:16.000Z (over 1 year ago)
- Last Synced: 2025-03-21T00:20:59.079Z (over 1 year ago)
- Topics: php, rent-management, sql, web-application
- Language: PHP
- Homepage: http://room-rent-management.infinityfreeapp.com/
- Size: 13.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Room Rent Calculator

*A simple web application to calculate and manage room rent with electricity bills.*
## Overview
Room Rent Calculator is a PHP-based web application designed to help users calculate their monthly room rent, including electricity costs based on unit consumption. It allows users to add, edit, delete, and download rent records as PDFs, with a graphical trend view using Chart.js. Records are displayed in descending order by date for easy tracking of the latest entries.
### Features
- **Calculate Rent**: Input previous and current electricity units, unit price, room rent, and optional additional/subtraction amounts.
- **Record Management**: View, edit, and delete records, with the latest entries shown first.
- **PDF Export**: Download all or selected records as a PDF using TCPDF.
- **Graphical Insights**: Visualize rent trends over time with Chart.js.
- **User Authentication**: Secure login system to manage personal records.
## Tech Stack
- **Frontend**: HTML, CSS, JavaScript (Chart.js)
- **Backend**: PHP
- **Database**: MySQL (via PDO)
- **PDF Generation**: TCPDF
- **Hosting**: Compatible with free hosting platforms like InfinityFree
## Getting Started
### Prerequisites
- PHP 7.4 or higher
- MySQL 5.7 or higher
- Web server (e.g., Apache) with PHP support
- Composer (optional, for TCPDF installation)
### Installation
1. **Clone the Repository**
```bash
git clone https://github.com/your-username/room-rent-calculator.git
cd room-rent-calculator