{"id":50845922,"url":"https://github.com/wayne2604/car-rental","last_synced_at":"2026-06-14T09:30:50.351Z","repository":{"id":358797309,"uuid":"1243115687","full_name":"wayne2604/car-rental","owner":"wayne2604","description":"A Car Rental Management System built with PHP and MySQL. Includes features for booking, client management, and vehicle tracking.","archived":false,"fork":false,"pushed_at":"2026-05-19T04:22:00.000Z","size":3047,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-19T06:58:50.214Z","etag":null,"topics":["bootstrap","car-rental","css","javascript","mysql","php","web-application"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wayne2604.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-19T04:08:02.000Z","updated_at":"2026-05-19T04:22:04.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/wayne2604/car-rental","commit_stats":null,"previous_names":["wayne2604/car-rental"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/wayne2604/car-rental","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayne2604%2Fcar-rental","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayne2604%2Fcar-rental/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayne2604%2Fcar-rental/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayne2604%2Fcar-rental/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wayne2604","download_url":"https://codeload.github.com/wayne2604/car-rental/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayne2604%2Fcar-rental/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34316823,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-14T02:00:07.365Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","car-rental","css","javascript","mysql","php","web-application"],"created_at":"2026-06-14T09:30:49.802Z","updated_at":"2026-06-14T09:30:50.337Z","avatar_url":"https://github.com/wayne2604.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://readme-typing-svg.herokuapp.com?font=Fira+Code\u0026size=32\u0026pause=1000\u0026color=F7F7F7\u0026center=true\u0026vCenter=true\u0026width=900\u0026lines=🚗+Car+Rental+Management+System\" alt=\"Title\" /\u003e\n\u003c/div\u003e\n\nA robust web-based car rental application built with PHP and MySQL. It allows customers to browse and book available vehicles, hire professional drivers, and manage active rentals, while providing admin clients with a comprehensive dashboard to oversee the vehicle fleet, driver registrations, and booking summaries.\n\n---\n\n### 📦 Stack\n- PHP 8.x\n- MySQL / MariaDB\n- Bootstrap 3.x\n- Vanilla CSS \u0026 W3.CSS\n- jQuery \u0026 Custom JS\n\n---\n\n### ✨ Quick start\n```bash\n# Clone the repository\ngit clone https://github.com/wayne2604/car-rental.git\n\n# Navigate to the directory\ncd car-rental\n```\nEnsure you have a local server environment (like XAMPP) running. Import the database schema `carrentalp.sql` from the `DATABASE FILE/` directory into your local MySQL/MariaDB server (via phpMyAdmin or CLI), and configure the database credentials inside `connection.php` to get started.\n\n---\n\n### ⚙️ Features\n- **Secure Auth** — Multi-role login and registration system for customers (users) and clients (admins).\n- **Fleet \u0026 Driver Management** — Add, view, and delete vehicles and drivers, with real-time status and availability tracking.\n- **Seamless Booking Flow** — Dynamic car booking options including rental duration, distance charge-type, AC vs. non-AC fares, and driver hiring.\n- **Automated Billing System** — Real-time cost calculations and printing of detailed receipts upon vehicle return.\n\n---\n\n### 🛠️ How it works\nThe system follows a modular PHP architecture designed for reliability and ease of use:\n- **Database Connectivity**: Uses native `mysqli` functions encapsulated in `connection.php` with database error-handling to manage robust CRUD operations.\n- **Decoupled Architecture**: Front-end page rendering (like booking, registration, and confirmation) is structured with standard forms pointing to processing endpoints.\n- **Multi-Role Session Control**: Uses isolated customer and client sessions (`session_customer.php` and `session_client.php`) to secure user dashboards and restrict access to unauthorized sections.\n\n---\n\n### 📁 Project structure\n```text\n/\n├── assets/                 # CSS/JS framework resources and car image files\n├── DATABASE FILE/          # Directory containing the SQL schema (carrentalp.sql)\n├── booking.php             # Vehicle booking form and driver selection\n├── bookingconfirm.php      # Form processing logic for reserving a vehicle\n├── clientlogin.php         # Admin/Client login page\n├── clientsignup.php        # Admin/Client registration page\n├── clientview.php          # Admin/Client dashboard listing all active bookings\n├── connection.php          # Database connectivity setup\n├── customerlogin.php       # Customer login page\n├── customersignup.php      # Customer registration page\n├── entercar.php            # Form for adding a new car to the fleet\n├── enterdriver.php         # Form for registering a new driver\n├── index.php               # Homepage displaying available cars for rent\n├── mybookings.php          # Customer booking history and rental tracking\n├── prereturncar.php        # Customer dashboard to select rented cars to return\n├── printbill.php           # Invoice generation page with print styling\n├── returncar.php           # Vehicle return and final cost calculation logic\n└── README.md               # Project documentation\n```\n\n---\n\n### 👤 Author\n**Wayne** — [github.com/wayne2604](https://github.com/wayne2604)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwayne2604%2Fcar-rental","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwayne2604%2Fcar-rental","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwayne2604%2Fcar-rental/lists"}