Simple Bus Ticket Booking System in PHP with Source Code

A fully functional project based on Bus Ticket Booking System that uses PHP Language with MySQL database. Following PHP project contains all the essential features which can be in use for the second year IT students for their college projects. It has a number of features that will allow users to manage bus routes as well as their bookings. This system as well as the web application’s concept is all clear, it’s the same as real-life scenarios and well-implemented on it. To download free bus ticket booking system project in PHP MySQL with source code files, please scroll down to the bottom of this post for the Download button.

About Bus Booking System PHP Project

Moving on, this bus ticket booking system project in PHP focuses mainly on online ticket reservations and route management. Also, the system displays all the lists of available routes according to their prices. In addition, the system allows managing bus information too. This project is divided into two categories: Admin, and Customer. In an overview of this web application, the role of the customer is pretty simple. A customer can only check the ticket’s status using PNR. Here, the admin has to provide the PNR code. As result, the customers can have their bus ticket details such as route, seat, timing, and other information. Besides, all other features fall upon the hands of an administrator.

Admin Panel and Route, Bus Management

On the other hand, an admin has full control over the system. An admin has the right to manage the proper flow of the system. With it, the very first step of the management side falls upon the arrangement of bus records. The administrator has to provide few details such as the number/name of the bus. Also, the admin has the right to manage bus routes by providing various details. Indeed, these details include the names of cities, selection of available buses, the total cost with departure date and time. And lastly, now the administrator has to provide the customer’s details such as the name of the customer and contact details. For the record, each route and customer record will have its own unique id, which is required later on in the booking section.

Online Bus Booking and Seat Availability

Coming towards the booking section, an admin has to maintain each booking information. The system requires a number of details in order to book a bus. The admin has to select a customer, routes, and select seat numbers. Indeed, the above-mentioned information helps to auto-fill certain other fields. Such as the selection of customer auto-fills every detail of customer, similarly the selection of routes auto-fills the name of source and destination. At last, the system automatically displays the total cost for the trip as soon as he/she selects a seat. The system automatically generates PNR codes after bookings. Also, the selection of seat numbers takes away the seat availability of that particular number. To make sure of these, the user can check the seat availability of buses by provided the bus number. The occupied seats are indicated using red color, whereas the remaining ones are default colors.

User Management, Earnings and PNR

In general, the system prepares a summary highlighting the details of particular routes, buses, customers. Of course, this whole section contains total earnings too. Also, the administrator can add users for the management of the system by providing the required details. Meanwhile, the user can use the PNR code from the client-side in order to check the ticket’s status and its details. Furthermore, the user can also print out the ticket details. Besides, the administrator can search details using the passenger’s ticket number and have an overview of total earnings with other fields too.

Last but not least, a clean and simple dashboard is presented with simple color combinations for a greater user experience while using this Online Bus Booking System Project in PHP MySQL. Indeed its UI elements, a free open-source CSS framework; Bootstrap is on board with some Vanilla CSS too. Presenting a new Simple Bus Ticket Booking System Project in PHP MySQL which includes an admin panel with a simple client-side that contains all the essential features to follow up, and a knowledgeable resource for learning purposes.

Available Features:
  • Admin Panel
  • Manage Bus and Route
  • Customer Management
  • Online Bus Booking
  • PNR Code
  • Seat Availability
  • Total Earnings
  • PNR Enquiry
  • Add System Users
  • Print Tickets
Project Name:Bus Ticket Booking System
Language/s Used:PHP
PHP version (Recommended):5.6, 7.4
Database:MySQL
Type:Web Application
Developer:Ashwin Anil
Updates:0
Simple Bus Ticket Booking System PHP Project Overview

Instructions: How to Run?

  • After you finish downloading the project, unzip the project file and head over to your XAMPP directory.
  • There you’ll find a folder naming “htdocs”.
  • Inside the “htdocs” folder, paste the project folder (not the .zip one, but the extracted one).
  • Open your favorite browser; we recommend using Google Chrome or Mozilla Firefox.
  • Then, go to URL “http://localhost/phpmyadmin“.
  • Create a Database with a name that is provided inside the “01 LOGIN DETAILS & PROJECT INFO.txt”.
  • Finally, click on the “Import” tab and choose the database file (.sql) which is provided under the folder naming “DATABASE FILE”.
  • After setting up all these, go to URL “http://localhost/[ PROJECT_FOLDER_NAME ]/“
  • All the login details are provided inside the project folder, check that out and enter in order to use it.

And there you have it, a full setup of the Bus Ticket Booking System Project in PHP MySQL. For this particular PHP project, PHP Version 5.6 or Newer is required because the project might not operate well with the oldest PHP version. So, users with the oldest PHP version (less than 5.6) might face various problems while operating it. As a result, you’ll need to upgrade your PHP version (only if you’re using the oldest version) at the moment. Download Free Bus Booking System Project in PHP MySQL Source Code. So, this Online Bus Ticket Booking System PHP project is a fully functional project for all beginners as well as intermediate levels that broads vast knowledge into such PHP web applications. In conclusion, this whole PHP project with free source code is an absolute project. And, a meaningful way for the users to learn and explore more about it.

Free Download Simple Bus Ticket Booking System Project in PHP MySQL with Source Code:
Click the Download Button Below to Start Downloading

Note: Only for Educational Purpose

42 comments

    1. sir i need to know how to use ur code and make my own bus ticket booking system
      i tried doing it but not working ,can u plz guide me how to do my own one exactly like yours .
      kindly reply me as soon as u see my request.

        1. you don’t have to go to URL “/admin” for the admin login panel! It is done from the landing page – Top bar.
          The login details are provided in the txt file!

  1. I am trying to make changes to the code but the changes aren’t showing up on the website. Can you please tell me what to do?

      1. I found out the problem. I was trying to make changes to the extracted file instead of the one present in htdocs folder. Anyway, thank you very much for your reply.

  2. hi, i need the booking page separate for users (login -> book ticket -> booking history -> user profile ->log out). can you please make it for me?

  3. hi, i need the booking page separate for users (login -> book ticket -> booking history -> user profile ->log out).
    The signup page should act as add customer.
    while booking mobile number should be the customer id.
    admin also can book but change the customer id with customer mobile number.

  4. sir i need to know how to use ur code and make my own bus ticket booking system
    i tried doing it but not working ,can u plz guide me how to do my own one exactly like yours .
    kindly reply me as soon as u see my request.

      1. Fatal error: Uncaught mysqli_sql_exception: Table ‘sbtbsphp.routes’ doesn’t exist in C……………………

  5. Hi, i have followed the instructions but i keep getting this error

    Warning: require(../assets/partials/_admin-check.php): failed to open stream: No such file or directory in C:\xampp\htdocs\oatnt\assets\partials\index.php on line 2

    Fatal error: require(): Failed opening required ‘../assets/partials/_admin-check.php’ (include_path=’C:\xampp\php\PEAR’) in C:\xampp\htdocs\oatnt\assets\partials\index.php on line 2

    what should i do?

  6. HI,
    This project is so good, I tried to log in and after the log in its redirecting \assets..\partial..\index……
    But In that partial folder Nothing have index.php….. Can you pls help to resolve this error

    1. Nope, that’s not how it works. After successful login, it’ll redirect you to “admin\dashboard”. You can also check on “assets\partials\_handleLogin”

  7. Hi this is good, And I need help, After login its redirecting /assets../partial../index….. but in that extracted your project zip files, that index.php file is not found…. so that is showing 404… can you pls help to find index.php

    1. Nope, that’s not how it works. After successful login, it’ll redirect you to “admin\dashboard”. You can also check on “assets\partials\_handleLogin”

      1. Ok let me check the redirection url, and my login credential is testadmin and password is which is mention on user’s table…

  8. Thank you sir it’s a good one it’s very help full to create me own project thank you very much sir have a great day have you any payment method on this website to donate you a little bit amount of money?

  9. its a nice project and only admin login but does not have a customer login-book the ticket-my booking-cancel ticket

Leave a Reply

Your email address will not be published.