Pharmacy Management System in PHP CodeIgniter with Source Code

A fully functional project based on Pharmacy Management System which uses PHP Language with CodeIgniter Web Framework. Following PHP CodeIgniter project contains all the essential features which can be in use for the final year IT students for their college projects. It has a number of features that will allow users to keep sales and track inventories. 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 pharmacy management system project in PHP CodeIgniter Framework with source code files, please scroll down to the bottom of this post for the Download button.

About Pharmacy Management System PHP Project

Moving on, this Pharmacy Management System project in PHP CodeIgniter focuses mainly on keeping track and sales of pharmacy items. Also, the system displays all the categories with their respective details of each. In addition, the system allows adding generic names too. The project is divided into two categories: Admin and Staff Panel. In an overview of this web application, the staff account has its own limitations within the system. The staff can only contribute to maintaining the sales item. For this, the user has to enter the customer’s name, select medicines, and quantity. With it, the system displays the total payment amount and the user has to enter a paid amount to proceed. And finally, the system allows the user to print the invoice after a successful transaction.

Admin Panel, Medicine Inventory

Talking about the admin panel, an admin has all the access to the system. All the management sides fall upon the administrator. An admin has the right to manage medicines. But before that, the user has to insert generic names, presentations, supplier details as well. After the addition of generic names, the user can insert medicine names as well. And finally, the admin can proceed towards maintaining medicine inventory. For this, the user has to select a generic name, medicine name, supplier, enter quantity, unit price, selling price, expiry date, and more. With the settlement of these things, the system also calculates the total due amount for a certain supplier. Both prices per unit and selling price play a vital role in detecting profit/loss.

Purchase Statement and Supplier Payment

An admin can list out all the medicine purchase statements by selecting certain dates with respect to the medicine name and supplier company. This results in displays all the purchases done by the system within that particular date period. The purchase statement consists of details such as medicine name, presentation, and a generic name. With it, the system also displays the supplier’s name, per unit price, total quantity, total amount, paid, due, and expiry dates. And for checking out a supplier’s payment, an admin has to select the supplier’s name which displays all the due amounts. And not just it, it also filters records with date, total paid, and due amount. Here, the user can make payments for clearing up the due amount.

Medicine Sales Management and Sales Statement

Another best thing about this project is that it also allows the user to manage their sales. In order to maintain the sales, the user has to provide certain details. Such as customer’s mail, medicine name, and quantity. By setting up these fields, the system automatically displays the total amount with the selling price. Here, the admin can add numerous records for selling purposes. At last, the user has to enter the discount amount with the payment amount. The system allows printing simple invoices as soon as the transaction completes. With the management of sales, it is important to list our their statement too. For generating a statement, the user has to select within a date range. And as a result, the system displays all the sales items with their total amount and total sales amount.

Accounting, Staff Management and More

On the other hand, the account section helps the user to detect current profit and loss for the total sales. The user has to provide details such as date from, to, and medicine name. With it, the system generates reports. The report contains details such as sold quantity, purchase price, selling price, and overall profit/loss. The system displays the total profit/loss amount by mentioning the current state. Additionally, an admin can manage staff accounts too by providing username and password details. Also, the admin has the right to remove and update staff accounts. Besides, the admin can view overviews of today’s purchase amount, purchase due amount, sales of the month, expired products, today’s sale, etc.

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

Available Features:
  • Staff Panel
  • Admin Panel
  • Manage Medicine Presentation, Generic Name
  • Manage Medicines, Suppliers
  • Medicine Inventory
  • Purchase Statement
  • Supplier’s Payment
  • Sales Management
  • Sales Statement
  • Print Invoice
  • Profit/Loss Report
  • Staff Management
  • Expired Products
  • Sales of the Month
Project Name:Pharmacy Management System PHP
Language/s Used:PHP with CodeIgniter Web Framework
PHP version (Recommended):5.6 or Newer
Database:MySQL
Type:Web Application
Developer:B.M. Ashik Mahmud
Updates:0
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 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 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 Sales and Pharmacy Management System project in PHP CodeIgniter. 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 (lower 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 oldest version) at the moment. Download Free Pharmacy Management System Project in PHP MySQL CodeIgniter Source Code. So, this online pharmacy system PHP project is a fully functional project for all the 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 Pharmacy Management System Project in PHP MySQL CodeIgniter with Source Code:
Click the Download Button Below to Start Downloading

Note: Only for Educational Purpose

16 comments

      1. PHP Error was encountered
        Severity: 8192
        Message: Return type of CI_Session_files_driver::open($save_path, $name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

        1. This looks like an error coming from your LATEST version of PHP. This particular project is tested only with PHP 7.4, so the latest PHP 8 might create these problems. Still, you can find related solutions for these problems online!

  1. The zip folder does not contain the features displayed on the youtube video. It is a different project.

      1. Apologies I confused between two pharmacy management systems from the YouTube videos. This CodeIgniter project is working just fine. Sorry.

  2. How come when I select Medicine Name under Staff Login, the selling price and Total Amount are still blank? It does not auto select any amounts event after entering the quantity of medicine. What could be the problem?

  3. php was error bro

    An uncaught Exception was encountered
    Type: mysqli_sql_exception

    Message: No such file or directory

    Filename: /Applications/XAMPP/xamppfiles/htdocs/pharmacy-management-ci/system/database/drivers/mysqli/mysqli_driver.php

    Line Number: 201

    Backtrace:

    File: /Applications/XAMPP/xamppfiles/htdocs/pharmacy-management-ci/application/controllers/Main.php
    Line: 7
    Function: __construct

    File: /Applications/XAMPP/xamppfiles/htdocs/pharmacy-management-ci/index.php
    Line: 315
    Function: require_once

    1. What’s your PHP version? Not sure, but this [might be] due to the LATEST version of PHP. We’ve not tested this project with the latest version of PHP. This project was tested only with PHP 5.6 and 7.4.

  4. A PHP Error was encountered

    Severity: Warning

    Message: mkdir(): Invalid path

    Filename: drivers/Session_files_driver.php

    Line Number: 136

    Backtrace:

    File: C:\xampp\htdocs\pharmacy-management-ci\application\controllers\Main.php
    Line: 7
    Function: __construct

    File: C:\xampp\htdocs\pharmacy-management-ci\index.php
    Line: 315
    Function: require_once
    An uncaught Exception was encountered

    Type: Exception

    Message: Session: Configured save path ” is not a directory, doesn’t exist or cannot be created.

    Filename: C:\xampp\htdocs\pharmacy-management-ci\system\libraries\Session\drivers\Session_files_driver.php

    Line Number: 138

    Backtrace:

    File: C:\xampp\htdocs\pharmacy-management-ci\application\controllers\Main.php
    Line: 7
    Function: __construct

    File: C:\xampp\htdocs\pharmacy-management-ci\index.php
    Line: 315
    Function: require_once

  5. Hie, when I select Medicine Name under both Admin and Staff Login, the selling price and Total Amount are still blank? It does not auto select any amounts even after entering the quantity of medicine. What could be the problem?

Leave a Reply

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