Ana Sayfa / Kod ve Scriptler / Shop Management System

Shop Management System

PHP/MySQL ile çok dükkânlı faturalandırma ve yönetim sistemi: faturalar, KDV, kredi defteri, satın almalar, muhasebe ve süper yönetici paneli.

  • Yayın tarihi13 Ekim 2026
  • Nerede çalışırPHP 8.0, PHP 8.1, PHP 8.2, PHP 8.3
  • VeritabanıMySQL 8.0, MariaDB 10.x
  • Paket içeriği.php, .css, .html, .sql, JavaScript .js
  • Son güncelleme13 Ekim 2026
  • Canlı demoVar
Shop Management System

Overview

Shop Management & Billing System: Multi-Shop SaaS in PHP/MySQL

A complete billing and shop management platform for small and medium retail and service businesses. One installation serves many shops. A Super Admin controls every shop and subscription, and each shop works inside its own isolated workspace.

It is built in plain PHP with PDO/MySQL and has no framework or Composer dependencies, so it is easy to host, read and customize.

Highlights

  • Multi-shop (SaaS) architecture with a store-code login for each shop
  • Super Admin panel to create, activate, disable and renew shops
  • Free and Premium themes with per-shop feature toggles
  • Billing with VAT support, discounts, printable invoices and receipts
  • Credit (udhar) ledger, purchases and supplier accounts
  • Built-in accounting reports and audit tools

Super Admin Panel

  • Dashboard with shop counts, sales today, 7 days, 30 days and lifetime, and a sales chart
  • Create and manage shops, with activation start and end dates
  • Enable or disable features per shop: credit, notifications, settings, recent transactions, purchases, accounting and products
  • Switch shops between Free and Premium themes
  • Renewal, reactivation and premium-upgrade request handling
  • Broadcast or targeted notifications to shops
  • Global maintenance mode
  • Audit log of administrator actions
  • Upload login, dashboard and bill screenshots for each shop

Shop Features

  • Billing: multiple line items, percentage or fixed discounts, and payment by cash, online or credit
  • VAT billing: configurable VAT rate (13% default), VAT and PAN numbers, a separate VAT bills view, and print and export
  • Customers: customer accounts keyed by bike or vehicle number for workshops, or by mobile number for other shops
  • Credit ledger: charges, payments, settlement, due statements and receipts
  • Purchases: supplier purchases, supplier credit accounts and purchase charts
  • Products and services: a catalog with live search while creating bills (Premium)
  • Accounting (Premium): balance sheet, cash flow, ledger summary, income and expense entries, and an audit center with PDF download
  • Analytics and reports: sales overview and reports
  • Notifications: an in-app inbox with unread tracking
  • Settings: shop profile, logo, invoice prefix and footer, VAT settings and password change

Shop Types Supported

Bike shop, workshop, kirana (grocery), cloth shop and mobile shop.

Security Basics Included

  • Passwords stored with bcrypt
  • Prepared statements (PDO) for database queries
  • Session hardening: HttpOnly cookies, session ID regeneration and idle and absolute timeouts
  • Login rate limiting
  • CSRF tokens on key forms
  • Validated image uploads
  • Role separation between Super Admin and shop users

Requirements

  • PHP 8.0 or higher with PDO MySQL
  • MySQL 5.7+ or MariaDB 10.4+
  • Apache with mod_rewrite enabled (a .htaccess file is included)
  • Works on XAMPP or WAMP locally, and on shared hosting or a VPS

Installation

  1. Upload the files to your server or htdocs.
  2. Create a database named digital_shop and import database/digital_shop.sql.
  3. Run the SQL files in migrations/ in date order.
  4. Set your database credentials in config.php.
  5. Create the Super Admin account with the included CLI script (auth/seed_super.php).
  6. Log in through auth/index.php.

What’s Included

  • Full source code
  • Database schema and migration files
  • Ready-made styles and UI scripts, including a bundled chart library

Notes

    • Replace the demo data in the SQL file before going live.
    • Always review and test any software before using it with real business data.

      Features

      Multi-Shop (SaaS) System

      • One installation serving unlimited shops
      • Store-code login for each shop
      • Separate Super Admin and Shop Admin roles
      • Data isolated per shop
      • Shop activation start and end dates
      • Automatic expiry page for inactive shops
      • Renewal request system for shops

      Super Admin Panel

      • Dashboard with total shops, active and disabled counts, and Free and Premium counts
      • Sales statistics for today, 7 days, 30 days and lifetime
      • Sales chart for the last 7 to 90 days
      • Create, edit, activate and disable shops
      • Switch shops between Free and Premium themes
      • Per-shop feature toggles: credit, notifications, settings, recent transactions, purchases, accounting and products
      • Renewal, reactivation and premium-upgrade request handling
      • Broadcast or shop-specific notifications
      • Global maintenance mode
      • Audit log of administrator actions
      • Upload login, dashboard and bill screenshots for each shop

      Billing

      • Multiple line items per bill
      • Percentage or fixed discount
      • Payment types: cash, online and credit
      • Printable bills and receipts
      • Printable due statements
      • All bills list with search, filters and pagination
      • Bill export
      • Automatic bill numbering

      VAT and Tax

      • Optional VAT bills
      • Configurable VAT rate (13% by default)
      • VAT and PAN number support
      • Separate VAT bills view

      Customers and Credit Ledger

      • Customer accounts per shop
      • Vehicle number for bike shops and workshops, mobile number for other shops
      • Credit charges and payments
      • Due settlement
      • Credit center overview
      • Payment receipts

      Purchases and Suppliers

      • Record supplier purchases
      • Payment methods: cash, online and credit
      • Supplier credit accounts
      • Supplier ledger with charges and payments
      • Printable purchase records
      • Purchase charts

      Products and Services (Premium)

      • Product and service catalog
      • Active and inactive toggle
      • Live search when adding bill items

      Accounting (Premium)

      • Balance sheet
      • Cash flow report
      • Ledger summary
      • Manual income and expense entries
      • Audit center with bill lookup
      • Audit PDF download

      Reports and Analytics

      • Sales analytics
      • Business reports
      • Dashboard overview with recent transactions

      Notifications

      • In-app notification inbox
      • Read and unread tracking
      • Live notification fetching

      Shop Settings

      • Shop profile: name, type, address, phone and email
      • Logo upload
      • Invoice prefix and footer text
      • VAT and PAN settings
      • Password change

      Supported Shop Types

      • Bike shop
      • Workshop
      • Kirana (grocery)
      • Cloth shop
      • Mobile shop

      Design

      • Free and Premium themes
      • Responsive layout
      • Dark login screen
      • Charts powered by the bundled Chart.js

      Security

      • Passwords hashed with bcrypt
      • Prepared statements (PDO)
      • HttpOnly session cookies with session ID regeneration
      • Idle and absolute session timeouts
      • Login rate limiting
      • CSRF protection on key forms
      • Validated image uploads
      • CLI-only Super Admin creation

      Technical

      • Plain PHP with no framework or Composer
      • MySQL or MariaDB database
      • Apache .htaccess URL routing
      • SQL schema and migration files included
      • Timezone set to Asia/Kathmandu (changeable)
      • Works on XAMPP, WAMP, shared hosting or a VPS

      Requirements

      Server

      • Apache 2.4 with mod_rewrite enabled and AllowOverride All, because the included .htaccess handles URL routing
      • Works on XAMPP or WAMP locally, and on shared hosting, cPanel or a VPS

      PHP

      • PHP 8.0 or higher (PHP 8.2 recommended)
      • pdo_mysql extension
      • mbstring extension
      • gd extension (optional, used to resize uploaded shop logos)
      • json, session and fileinfo (enabled by default in standard PHP builds)
      • file_uploads enabled for logo and screenshot uploads

      Database

      • MySQL 5.7+ or MariaDB 10.4+ with InnoDB and utf8mb4 support
      • MariaDB 10.4+ or MySQL 8.0+ is recommended for running the migration files without errors

      Browser (for users)

      • Any modern browser: Chrome, Edge, Firefox or Safari
      • Internet access for the CDN-loaded Tailwind CSS and Google Fonts (the chart library is bundled locally)

      Folder permissions

      • ###licode###storage/uploads/ folder must be writable by the web server

      Setup

      • Create a database named digital_shop, or any name you set in config.php
      • Import database/digital_shop.sql, then run the files in migrations/ in date order
      • Update the database host, name, user and password in config.php
      • Create the Super Admin from the command line with auth/seed_super.php, which needs shell access (CLI) and a bootstrap token set as an environment variable
      • Use HTTPS in production so that the secure session cookie flag takes effect