Online Inventory Management Software – V2 – PHP




Online Inventory Management Software will help you to manage your product stock in manageable way. This system is a second version and more advance than previous. This system is built on CodeIgniter with proper management of users, groups, brand, stores, product, orders and reports. You can create as many users as you want and assigned them with required modules. The system features are listed below section. In addition, We will also teach you how to install the system successfully.

This system can be also used for small business. It is free web based inventory management software. This system is based on the store inventory system. The products are controlled by the store.

System Features

  • Admin
  • email: admin@admin.com
  • password: password

System Features

  • Manage Users
    • Add new user detail
    • View, Update, and remove user information
  • Manage Groups
    • Add new group information
    • View, Update, and remove group information
  • Manage Brands
    • Add new brand data
    • View, Update, and remove brand information
  • Manage Category
    • Add new category information
    • View, Update, and remove category information
  • Manage Stores
    • Add new store information
    • View, Update, and remove stores information
  • Manage Attributes
    • Add new attribute information
    • View, Update, and remove attributes information
  • Manage Products
    • Add new product information
    • View, Update, and remove products information
  • Manage Orders
    • Add new order information
    • View, Update, and remove orders information
  • Reports
    • View total amount of sales represented on the graphical chart based on yearly.
  • Company
    • Update the company information
    • That includes company name, address, phone, message, vat charge, service charge and more..
  • Profile
    • View the logged in user information
  • Setting
    • View, and Update logged in user information

Installation guidelines

First download the source code and database from the link that I had been provided at below section. Please download them it’s free to download.

After you have downloaded the source code. If you don’t MySQL or XAMPP (Windows), MAMP (MacOS) on your operating system then please download them.

Now, create the database named as stock, and import database script which has been provided to you.

So If your database is installed successfully copy the downloaded source code into the htdocs file which is located in MAMP or XAMPP directory.

After you have copied the file into that folder go to the stock/application/config/config.php. There you will see site_url which is global array. Change that localhost:8888 into your suitable port no. For example if you have localhost:8080 then changed it into that port no.

$config['base_url'] = 'http://localhost:8888/stock';

Go to the applications >> config >> database.php file and check if the created database name matches. As well as, If you have different database user’s username and password on your system then you will need to change the username and password.

folder_structur

$db['default'] = array(
	'dsn'	=> '',
	'hostname' => 'localhost',
	'username' => 'root',
	'password' => 'root',
	'database' => 'stock',
	'dbdriver' => 'mysqli',
	'dbprefix' => '',
	'pconnect' => FALSE,
	'db_debug' => (ENVIRONMENT !== 'production'),
	'cache_on' => FALSE,
	'cachedir' => '',
	'char_set' => 'utf8',
	'dbcollat' => 'utf8_general_ci',
	'swap_pre' => '',
	'encrypt' => FALSE,
	'compress' => FALSE,
	'stricton' => FALSE,
	'failover' => array(),
	'save_queries' => TRUE
);

This is a final step, After you have successfully installed and configure the main file. Open the chrome browser and type localhost:8888 or any port no that your apache server supports. After that the page should redirect you to the login page. Please enter the credential that has been provided at above page section.

I hope this helps you alot. Thank you



For Source Code:

For Database :

System Features

Installation guidelines

88 thoughts on “Online Inventory Management Software – V2 – PHP

  1. i cant run stock system

    404 Page Not Found
    The page you requested was not found
    i changed the port
    to 80 even i remove the port but still not running
    $config[‘base_url’] = ‘http://localhost/stock/’;

  2. I am going to use this system but the problem is i want to change service charge value and vat charge value.Can anyone please help me

    1. I can’t go to the dashboard.. First it was localhost/stock, then when I pressed sign in, then showing
      404 Page Not Found

      The page you requested was not found.

  3. I thank you for the free Share.i am unable to reach dashbord when logging in i AM redirected to 404 error page and the adress Link Points towards auth/Login.how can i overcome this issue? Thank you

  4. can I use this to my shared host server? please help me and send me guide how to use it. I have linux shared server in justhost.com

  5. I can’t go to the dashboard.. First it was localhost/stock, then when I pressed sign in, then showing
    404 Page Not Found

    The page you requested was not found.

  6. To correct the 404 error,
    try replacing
    RewriteRule ^(.*)$ index.php/$1 [L,QSA]
    by
    RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
    in .htaccess file.

    It worked for me.

  7. Hi All,

    Greetings!

    Those having 404 Page Not Found issues, attention … follow the details below:

    Find the section and change AllowOverride None to AllowOverride All

    AllowOverride All

    Save and exit.

    Now restart Apache to put the change into effect:
    sudo systemctl restart httpd

    This should solve your issues.

    Cheers!

    1. Kindly note i have gone through the entire project and unable to find
      AllowOverride None or AllowOverride All. How to solve the Page 404 Not Found Issue. pls adv thanks for your guidance

  8. please help me.
    this is the error.
    how can i solve it?

    A PHP Error was encountered

    Severity: Warning

    Message: mysqli::real_connect(): (HY000/1045): Access denied for user ‘kawsar’@’localhost’ (using password: YES)

    Filename: mysqli/mysqli_driver.php

    Line Number: 201

    Backtrace:

    File: C:\xampp\htdocs\stock\application\core\MY_Controller.php
    Line: 7
    Function: __construct

    File: C:\xampp\htdocs\stock\application\core\MY_Controller.php
    Line: 17
    Function: __construct

    File: C:\xampp\htdocs\stock\application\controllers\Auth.php
    Line: 10
    Function: __construct

    File: C:\xampp\htdocs\stock\index.php
    Line: 315
    Function: require_once

    A Database Error Occurred

    Unable to connect to your database server using the provided settings.

    Filename: C:/xampp/htdocs/stock/system/database/DB_driver.php

    Line Number: 436

  9. my .htaccess in application folder doesnot contain this RewriteRule ^(.*)$ index.php/$1 [L,QSA].
    what to do?

  10. Hello sir please how can i fix this error message, i have change the config file

    $config[‘base_url’] = ‘http://localhost:8888/stock/’;

    to $config[‘base_url’] = ‘http://localhost:80/stock/’;

    but this is the error message:
    Internal Server Error
    the server encountered an internal error or misconfiguration and was unable to complete your request

    404 Page Not Found
    The page you requested was not found
    i changed the port
    to 80 even i remove the port but still not running
    $config[‘base_url’] = ‘http://localhost/stock/’;

  11. Hi Sir,

    What is the exact XAMPP version will work for this project? It’s failing to run with version XAMPP 7.2.3 / PHP 7.2.3.

  12. Hello dear developer,

    The system works fine, but the password of user, I can not change it. After Save nothing to change. In the Password input the characters is not hidden!

  13. Hey bro tnxx for code … but i have some problem … do any one have solution for this ?

    Fatal error: Can’t use method return value in write context in C:\xampp\htdocs\stock\application\core\MY_Controller.php on line 20

    Fatal error: Class declarations may not be nested in C:\xampp\htdocs\stock\system\core\Exceptions.php on line 49

  14. hi sir
    i have change what need but doesn’t access the file ,browser has show this error….please help this solution.
    “”forbidden!
    You don’t have permission to access the requested object. It is either read-protected or not readable by the server.

    If you think this is a server error, please contact the webmaster.

    Error 403
    localhost
    Apache/2.4.23 (Win32) OpenSSL/1.0.2h PHP/5.6.24″”””

  15. Hello
    sir I do every thing you said ..
    but when I login see 404 Page Not Found where is the problem
    please help any suggestion for this solution.

    Thanks.

  16. This is cool… I saw a lot of paid system “stealing” the code from this project and change the type of scripting (not php). I have already implemented this system with major changes. Double thumbs up for the creator.

  17. To reslove the page not found issue $config[‘base_url’] = ‘http://localhost:8012’; in the config.php change $config[‘base_url’] = ‘http://localhost:8012/stock’; to the previous (* Remove Stock *)

  18. Great. Works for me with Xampp and port 80 in config.php
    $config[‘base_url’] =’http://localhost:80/stock2/’;

    I am an absolute beginner in programming with PHP. Thanks to you for the tutorial and a working application. Now all I have to do is study 🙂

  19. Just completed the setup and straight away getting error message as below:

    ************************************************
    A PHP Error was encountered
    Severity: Compile Error
    Message: Can’t use method return value in write context
    Filename: core/MY_Controller.php
    Line Number: 20
    Backtrace:

  20. *************************************************************
    *********IS NOT WORKING *********************************
    *********404 Page Not Found*******************************
    **********The page you requested was not found.***********
    **************************************************************

  21. public function __construct()
    {
    parent::__construct();

    $group_data = array();
    if(empty($this->session->userdata(‘logged_in’))) {
    $session_data = array(‘logged_in’ => FALSE);
    $this->session->set_userdata($session_data);
    }
    else {
    $user_id = $this->session->userdata(‘id’);
    $this->load->model(‘model_groups’);
    $group_data = $this->model_groups->getUserGroupByUserId($user_id);

    $this->data[‘user_permission’] = unserialize($group_data[‘permission’]);
    $this->permission = unserialize($group_data[‘permission’]);
    }
    }

    public function logged_in()
    {
    $session_data = $this->session->userdata();
    if($session_data[‘logged_in’] == TRUE) {
    redirect(‘dashboard’, ‘refresh’);
    }
    }

    public function not_logged_in()
    {
    $session_data = $this->session->userdata();
    if($session_data[‘logged_in’] == FALSE) {
    redirect(‘auth/login’, ‘refresh’);
    }
    }
    error shown in browser
    Fatal error: Can’t use method return value in write context in C:\xampp\htdocs\stock\application\core\MY_Controller.php on line 20
    A PHP Error was encountered
    Severity: Compile Error

    Message: Can’t use method return value in write context

    Filename: core/MY_Controller.php

    Line Number: 20

    Backtrace:

  22. Hi all
    in product/create view , form action is to users/create . but form is working, why ?
    <form role="form" action="” method=”post” enctype=”multipart/form-data”>
    any idea ?

  23. I have installed system and get login page.
    login name admin@admin.com
    password password
    Instead of coming up with dashboard page it says PAGE NOT FOUND
    /stock/auth/login page not found
    How to correct this so program will work

  24. Hi ,
    Getting below error post login . Please assist

    404 Not Found

    The requested URL /stock/auth/login was not found on this server.

  25. Just completed the setup and straight away getting error message as below:

    ************************************************
    A PHP Error was encountered
    Severity: Compile Error
    Message: Can’t use method return value in write context
    Filename: core/MY_Controller.php
    Line Number: 20
    Backtrace:

  26. I installed the system and get the login page.
    Instead of coming with the dashboard page, it says PAGE NOT FOUND
    /stock/auth/login 404 page not found
    How to correct this?
    Thank you

  27. Hi, the project looks great but I am running into 404 error Page not found after I try to log in.
    Any solution for this issue yet?
    Thanks

  28. Hi,

    I have installed system and get login page.

    login name admin@admin.com

    password password

    Instead of coming up with dashboard page it says

    This page isn’t working, sent an invalid response.
    ERR_INVALID_HTTP_RESPONSE

    How to correct this so program will work

    Thanks
    JMM

  29. A PHP Error was encountered
    Severity: Notice

    Message: Undefined index: logged_in

    Filename: core/MY_Controller.php

    Line Number: 37

    Backtrace:

    File: C:\xampp\htdocs\projects\Stock-v2\application\core\MY_Controller.php
    Line: 37
    Function: _error_handler

    File: C:\xampp\htdocs\projects\Stock-v2\application\controllers\Auth.php
    Line: 22
    Function: logged_in

    File: C:\xampp\htdocs\projects\Stock-v2\index.php
    Line: 315
    Function: require_once

  30. sir what is this problem???
    help me

    A PHP Error was encountered

    Severity: Warning

    Message: mysqli::real_connect(): (HY000/1045): Access denied for user ‘root’@’localhost’ (using password: YES)

    Filename: mysqli/mysqli_driver.php

    Line Number: 201

    Backtrace:

    File: C:\xampp\htdocs\stock\application\core\MY_Controller.php
    Line: 7
    Function: __construct

    File: C:\xampp\htdocs\stock\application\core\MY_Controller.php
    Line: 17
    Function: __construct

    File: C:\xampp\htdocs\stock\application\controllers\Auth.php
    Line: 10
    Function: __construct

    File: C:\xampp\htdocs\stock\index.php
    Line: 315
    Function: require_once
    A Database Error Occurred

    Unable to connect to your database server using the provided settings.

    Filename: C:/xampp/htdocs/stock/system/database/DB_driver.php

    Line Number: 436

  31. Good tiny inventory system. Somehow, new products must be added through product update. Therefore, adding the existing products is still problematic. I think the design did not cover this feature and it’s a drawback from using your system. Hopefully, you will reconsider and add this feature in the upcoming version(if you still want to improve it). The rest seems to work as good as you described.
    Cheers!

  32. fuck you man you wasted my time just for the sake of download or traffic fucking bloody whore person

  33. hii
    Thanks for everything i have just a little question about how i can tchange the name of table in application like (products to Base de Donnée )
    please help (^=^)

  34. A PHP Error was encountered
    Severity: Warning

    Message: mysqli::real_connect(): (HY000/1049): Unknown database ‘stock’

    Filename: mysqli/mysqli_driver.php

    Line Number: 201

    Backtrace:

    File: C:\xampp\htdocs\Stock\application\core\MY_Controller.php
    Line: 7
    Function: __construct

    File: C:\xampp\htdocs\Stock\application\core\MY_Controller.php
    Line: 17
    Function: __construct

    File: C:\xampp\htdocs\Stock\application\controllers\Auth.php
    Line: 10
    Function: __construct

    File: C:\xampp\htdocs\Stock\index.php
    Line: 315
    Function: require_once

    A Database Error Occurred
    Unable to connect to your database server using the provided settings.

    Filename: C:/xampp/htdocs/Stock/system/database/DB_driver.php

    Line Number: 436

  35. Fatal error: Can’t use method return value in write context in C:\xampp\htdocs\Stock\application\core\MY_Controller.php on line 20
    A PHP Error was encountered
    Severity: Compile Error

    Message: Can’t use method return value in write context

    Filename: core/MY_Controller.php

    Line Number: 20

    Backtrace:

  36. Hi.
    I can not get the system to work. The apache logg shows the following.
    Would you know what the cause is?

    [Tue May 21 13:05:31.444204 2019] [:error] [pid 5956:tid 1192] [client 127.0.0.1:50812] PHP Fatal error: Can’t use method return value in write context in C:\\wamp\\www\\stock\\application\\core\\MY_Controller.php on line 20
    [Tue May 21 13:05:31.444204 2019] [:error] [pid 5956:tid 1192] [client 127.0.0.1:50812] PHP Stack trace:
    [Tue May 21 13:05:31.444204 2019] [:error] [pid 5956:tid 1192] [client 127.0.0.1:50812] PHP 1. {main}() C:\\wamp\\www\\stock\\index.php:0
    [Tue May 21 13:05:31.444204 2019] [:error] [pid 5956:tid 1192] [client 127.0.0.1:50812] PHP 2. require_once() C:\\wamp\\www\\stock\\index.php:315

    Tranks.

  37. Hi guys…
    By default Codeigniter use a index.php on url.
    So, if your application run on http://localhost/stock then you need to access the Dashboard using http://localhost/stock/index.php/dashboard.
    But there is a ugly url.
    You can configure the .htaccess file tu fix it and run the aplication without index.php
    Do it on .htacess in root project folder:(where stock is de path of your project)
    RewriteEngine On
    RewriteBase /stock
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]

    best regards…

  38. foloow the video,muphpadmin…load the corect stock.sql in the your new user sql and dont forget to change config and data base

  39. for error 404 add
    .htaccess in root
    RewriteEngine on
    RewriteCond $1 !^(index\.php|resources|robots\.txt)
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L,QSA]

Leave a Reply

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