Simple Pharmacy Management System in PHP with Source Code

A simple project based on Online Pharmacy Management System Project that uses PHP Language with MySQL Database. Following PHP project contains all the essential features which can be in use by first-year IT students for their college projects. It has a number of features that will allow users to maintain records and transactions. This web application as well as the website’s concept is all clear. It’s the same as real-life scenarios and well-implemented on it. To download free Simple Pharmacy Management System Project in PHP MySQL with source code files, please scroll down to the bottom of this post for the Download button.

About Simple Pharmacy Management System PHP Project

In particular, this Pharmacy Management System Project in PHP focuses mainly on maintaining medicine records and sales. To be more precise, the system helps to keep a number of sales and medical records. Also, the system contains a sales report section too. In addition, the system allows adding up the medicine record with their respective categories( Evidently, this project contains an admin panel only. In an overview of this web application, the user can simply add up medicines for further steps. Here, the user has to provide a number of details in order to add a new medicine. Such as bar code, medicine name, category, remarks, quantity, expiry date with cost, and selling price. As a result, the system automatically displays the total profit margin for each. In fact, this simple pharmacy system project in PHP clearly helps in the sales management side as its main motive.

Sales Management

When it comes to projects such as pharmacy management systems, the user should also be able to maintain sales transactions. And there is one. For the management of sales, the user simply has to provide a bar code number. With it, the system automatically displays other information such as medicine names and available quantities ( In fact, this particular section operates in real-time. After the selection of medicines, the user can add items to the cart. Additionally, the system allows managing items in the cart section. And speaking of managing items means the user can update quantity and remove unwanted medicines. In order to complete the sales transaction, the user has to submit the received amount. At last, the system generates an invoice that can be printed easily.

Sales Report, Notifications, and Database Backup

Moreover, the administrator can view a list of sales reports. After every successful sale transaction, the system gathers the information and displays it under this section. Additionally, the administrator can filter between starting and ending dates for the sales report( Here, the system displays some details such as total amount, medicine name, category, and price. That being said, the administrator can download the report in order to get the full invoice. All the downloaded pdf invoices are saved under the directoryC:/invoices/” Talking about the system notification, it is all related to the medicine’s expiry date and quantity. With this, the system helps to notify the admin in case of nearer expiry dates and out-of-stock medicines. The only way to update a particular medicine’s record is by updating the medicine list from the products section. Besides, the administrator can backup database records with a single click from the backup section.

The system also displays the total sales amount of 24-hrs in the home section. Last but not least, a clean and simple dashboard is presented with various color combinations for a greater user experience while using this Simple Pharmacy Management System Project in PHP MySQL. For its UI elements, a free open-source CSS framework; Bootstrap is on board with some Vanilla CSS too. Presenting a new Simple Pharmacy System Project in PHP MySQL which includes an admin panel. That too contains all the essential features to follow up and is a knowledgeable resource for learning purposes.

Available Features:
  • Admin Panel
  • Product Management
  • Sales Management
  • Filter Medicine Records
  • Add to Cart System
  • Sales Report
  • Filter Reports
  • Print Invoices
  • Download Invoices
  • Out-of-stock Notification
  • Expiry Dates Notification
  • Backup Database
Project Name:Simple Pharmacy Management System
Language/s Used:PHP
PHP version (Recommended):5.6, 7.4
Type:Web Application
Developer:Aung Naing Thu
Simple Pharmacy Management 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 the URL “http://localhost/phpmyadmin“.
  • Create a Database with a name that is provided inside the “01 LOGIN DETAILS & PROJECT INFO.txt”.
  • 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 the URL “http://localhost/[ PROJECT_FOLDER_NAME ]/“
  • All the login details are provided inside the project folder, check that out and enter them in order to use it.

And there you have it, a full setup of the Simple Pharmacy Management System Project in PHP MySQL. For this particular PHP project, PHP Version 5.6 or 7.4 is required because the project might not operate with the oldest PHP version. So, users with the oldest PHP version (older than 5.6) might face various problems while operating it. As a result, you’ll need to manage your PHP version (only if you’re using the old version) at the moment. Also, Download Free Pharmacy System Project in PHP Source Code – So, this simple pharmacy management system PHP project is a simple project for all beginners 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 Pharmacy Management System Project in PHP MySQL with Source Code:
Click the Download Button Below to Start Downloading

Note: Only for Educational Purpose


  1. Fatal error: Uncaught ArgumentCountError: mktime() expects at least 1 argument, 0 given in C:\……………….
    this error occurs on home page.what is the solution?

  2. Hello Admin i have this eroor when i save invoice

    Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in C………………

  3. Access denied for user ‘root’@’localhost’ (using password: NO) error showing and login is not working

  4. Fatal error: Uncaught mysqli_sql_exception: Unknown database ‘simplepharmacy’ in C:\xampp\htdocs\SimplePharmacy-PHP\SimplePharmacy-PHP\dbcon.php:10 Stack trace: #0 C:\xampp\htdocs\SimplePharmacy-PHP\SimplePharmacy-PHP\dbcon.php(10): mysqli_connect(‘localhost’, ‘root’, Object(SensitiveParameterValue), ‘simplepharmacy’) #1 C:\xampp\htdocs\SimplePharmacy-PHP\SimplePharmacy-PHP\index.php(5): include(‘C:\\xampp\\htdocs…’) #2 {main} thrown in C:\xampp\htdocs\SimplePharmacy-PHP\SimplePharmacy-PHP\dbcon.php on line 10

Leave a Reply

Your email address will not be published. Required fields are marked *