{"id":29311563,"url":"https://github.com/ch-rafay/hotel-reservation-website","last_synced_at":"2025-07-31T02:37:39.738Z","repository":{"id":300242239,"uuid":"1004939552","full_name":"CH-RAFAY/Hotel-Reservation-Website","owner":"CH-RAFAY","description":"Rest Riser is a full-stack hotel booking platform that enables users to browse, book rooms, and manage reservations online.","archived":false,"fork":false,"pushed_at":"2025-06-20T15:13:48.000Z","size":64978,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-07T08:15:16.735Z","etag":null,"topics":["full-stack-development","mysql-database","responsive-design","user-authentication","web-security"],"latest_commit_sha":null,"homepage":"https://shorturl.at/bmip7","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CH-RAFAY.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license","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}},"created_at":"2025-06-19T12:10:02.000Z","updated_at":"2025-06-20T15:13:52.000Z","dependencies_parsed_at":"2025-06-20T16:38:55.217Z","dependency_job_id":null,"html_url":"https://github.com/CH-RAFAY/Hotel-Reservation-Website","commit_stats":null,"previous_names":["ch-rafay/hotel-reservation-website"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CH-RAFAY/Hotel-Reservation-Website","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CH-RAFAY%2FHotel-Reservation-Website","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CH-RAFAY%2FHotel-Reservation-Website/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CH-RAFAY%2FHotel-Reservation-Website/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CH-RAFAY%2FHotel-Reservation-Website/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CH-RAFAY","download_url":"https://codeload.github.com/CH-RAFAY/Hotel-Reservation-Website/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CH-RAFAY%2FHotel-Reservation-Website/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267978039,"owners_count":24175245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"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":["full-stack-development","mysql-database","responsive-design","user-authentication","web-security"],"created_at":"2025-07-07T08:15:11.225Z","updated_at":"2025-07-31T02:37:39.702Z","avatar_url":"https://github.com/CH-RAFAY.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rest Riser - Hotel Booking Platform\n\n## Overview\n\nRest Riser is a full-stack web application designed to provide a seamless hotel booking experience, inspired by Booking.com. The platform allows users to browse available rooms, check booking availability, contact the hotel, and manage their accounts through a user-friendly interface. It includes both user and admin dashboards for managing bookings and user data, ensuring a robust and secure experience for all stakeholders.\n\n---\n\n## Features\n\n- **Room Browsing \u0026 Booking:**  \n  Users can explore available rooms with details such as features, facilities, pricing, and guest capacity. A booking availability checker allows users to input check-in/check-out dates and guest information.\n- **Contact Form:**  \n  A secure contact form enables users to send inquiries, with data stored in a MySQL database for easy management.\n- **User Authentication:**  \n  Secure session-based authentication allows users to log in, access their dashboard, and manage their profiles.\n- **Admin Dashboard:**  \n  Admins have access to a comprehensive dashboard to manage users, verify accounts, and delete users (except their own account).\n- **Responsive Design:**  \n  Built with Bootstrap, the platform is fully responsive, ensuring compatibility across desktops, tablets, and mobile devices.\n- **Interactive Map:**  \n  Embedded Google Maps for location visualization on the contact page.\n- **Social Media Integration:**  \n  Links to social media platforms for enhanced user engagement.\n- **Facilities \u0026 Testimonials:**  \n  Dedicated sections to showcase hotel facilities and customer testimonials, enhancing trust and user experience.\n- **Occasion Booking:**  \n  A placeholder for future implementation of special event or occasion booking functionality.\n\n---\n\n## Technologies Used\n\n### Frontend\n\n- HTML5, CSS3, JavaScript\n- Bootstrap 5 for responsive design\n- Bootstrap Icons for UI enhancements\n\n### Backend\n\n- PHP 7.x/8.x for server-side logic\n- MySQL for database management\n\n### Database\n\n- MySQL with tables for users and user queries\n\n### External APIs/Services\n\n- Google Maps Embed API for location display\n\n### Session Management\n\n- PHP sessions for user authentication and state management\n\n### Security\n\n- Input sanitization using `htmlspecialchars` and `mysqli_real_escape_string`\n- Email validation with `filter_var`\n- Prepared statements for secure database queries\n\n---\n\n## Project Structure\n\n- rest-riser/\n  - about.php\n  - contactUs.php\n  - dashboard.php\n  - Facilities.php\n  - index.php\n  - Ocassion.php\n  - Rooms.php\n  - testoo.php\n  - inc/\n    - header.php\n    - footer.php\n    - link.php\n  - README.md\n\n\n\n---\n\n## Database Schema\n\nThe application uses a MySQL database named `Hotelreservation` (or `booking_db` in some files). Key tables include:\n\n### users\n\n| Field       | Type         | Description                        |\n|-------------|--------------|------------------------------------|\n| id          | INT, PK      | Auto-increment primary key         |\n| name        | VARCHAR      | User's full name                   |\n| email       | VARCHAR      | User's email address               |\n| role        | VARCHAR      | User role (admin or user)          |\n| verified    | TINYINT      | Verification status (0 or 1)       |\n| created_at  | TIMESTAMP    | Account creation timestamp         |\n| last_login  | TIMESTAMP    | Last login timestamp               |\n\n### userqueries\n\n| Field   | Type      | Description               |\n|---------|-----------|--------------------------|\n| name    | VARCHAR   | Sender's name            |\n| email   | VARCHAR   | Sender's email           |\n| subject | TEXT      | Message content          |\n\n\u003e **Note:**  \n\u003e Ensure consistency in database names (`Hotelreservation` vs. `booking_db`) across all files before deployment.\n\n---\n\n## Setup Instructions\n\n### Prerequisites\n\n- Web server (e.g., Apache)\n- PHP 7.x or 8.x\n- MySQL 5.x or later\n- Git (for cloning the repository)\n\n### Installation\n\n1. **Clone the Repository:**\n    ```\n    git clone https://github.com/your-username/rest-riser.git\n    cd rest-riser\n    ```\n\n2. **Configure the Web Server:**\n    - Place the project folder in your web server's root directory (e.g., `htdocs` for XAMPP).\n    - Ensure the server supports PHP and MySQL.\n\n3. **Set Up the Database:**\n    - Create a MySQL database (e.g., `Hotelreservation`).\n    - Import the necessary tables (create `users` and `userqueries` tables as per the schema above).\n    - Update database credentials in `contactUs.php` and `dashboard.php`:\n      ```\n      $conn = new mysqli(\"localhost\", \"root\", \"\", \"Hotelreservation\");\n      ```\n      Replace `\"root\"`, `\"\"`, and `\"Hotelreservation\"` with your MySQL username, password, and database name.\n\n4. **Run the Application:**\n    - Start your web server and MySQL service.\n    - Access the application via [http://localhost/rest-riser/index.php](http://localhost/rest-riser/index.php).\n\n---\n\n## Admin Access\n\n- Create an admin user in the `users` table with `role = 'admin'`.\n- Log in to access the admin dashboard at `dashboard.php?view=admin`.\n\n---\n\n## Usage\n\n- **Homepage:** Browse rooms, check availability, and navigate to other sections.\n- **Rooms:** Filter rooms by availability, facilities, and guest count.\n- **Contact Us:** Submit inquiries via the contact form.\n- **Dashboard:**\n  - **Users:** View and manage personal account details.\n  - **Admins:** Manage all users, verify accounts, and delete users.\n- **Facilities \u0026 About:** Learn about the hotel's amenities and background.\n- **Occasion Booking:** Currently a placeholder for future development.\n\n---\n\n## Known Issues\n\n- Inconsistent database names (`Hotelreservation` vs. `booking_db`) may cause connection errors.\n- The `Ocassion.php` file is empty and requires implementation.\n- The `testoo.php` file is referenced but not provided; it may be a placeholder or missing.\n- Limited booking functionality; actual booking processing logic is not fully implemented.\n- Social media links in `contactUs.php` are placeholders (`href=\"#\"`).\n\n---\n\n## Future Enhancements\n\n- Implement full booking functionality with payment integration.\n- Complete the occasion booking feature in `Ocassion.php`.\n- Add user registration and password recovery features.\n- Enhance security with password hashing and CSRF protection.\n- Optimize database queries for better performance.\n- Expand testimonial and facility sections with dynamic content from the database.\n\n---\n\n## Contributing\n\nContributions are welcome! To contribute:\n\n1. Fork the repository.\n2. Create a new branch:\n    ```\n    git checkout -b feature/your-feature\n    ```\n3. Commit your changes:\n    ```\n    git commit -am 'Add your feature'\n    ```\n4. Push to the branch:\n    ```\n    git push origin feature/your-feature\n    ```\n5. Open a pull request.\n\nPlease ensure your code follows the project's coding standards and includes appropriate documentation.\n\n---\n\nThank you for exploring Rest Riser! We hope you enjoy using this platform as much as we enjoyed building it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fch-rafay%2Fhotel-reservation-website","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fch-rafay%2Fhotel-reservation-website","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fch-rafay%2Fhotel-reservation-website/lists"}