About this software
About Sundial POS
Sundial POS is a single PHP web application (no framework, no mobile app, no external API) for small retail shops such as clothing, boutiques, shoes, bags and cosmetics. It covers barcode billing, colour and size stock variants, customer dues, held bills, vendor purchasing and returns, a cash book, salesman reports and profit and loss. Sales can be taken while the server is unreachable: a service worker and IndexedDB keep them, then send them to the server when it is back. It runs on XAMPP, a VPS, shared hosting or Docker, with a setup wizard, and the package ships its own test suite and recorded check results (112 tests on MariaDB 10.11 and MySQL 8.0). Full source is included with a single-site licence.
Why Sundial POS
What makes it better
than the alternatives
- 01
Offline billing
Sales are kept in the browser (IndexedDB) with a provisional receipt while the server is down and synced later; the recorded test shows a sale sent twice produces one bill.
- 02
Colour × size stock
Products carry colour and size variants, unique barcodes and SKUs, and barcode label printing (Code 128) is built in.
- 03
Layered access control
Every write goes through one ajax.php route with CSRF check, POST-only, login and a per-action permission map, with Saler, Manager and Admin roles and own-record versus others' ownership checks.
- 04
Login hardening and audit
Bcrypt passwords, lockout per user and computer, an audit log of sensitive actions, upload content checks and security headers.
- 05
Documented and tested release
Ships a schema with 24 tables and 26 foreign keys, versioned migrations, backup/restore, Docker files and recorded checks including a 229-case route guard test and 26-case offline test.
Billing (Take Orders)
- Barcode-based billing screen
- Hold and resume bills
- Pay window and invoice/receipt popup
- Price-override approval by an approver password
- Offline sales queue with sync to the server
Catalog & Inventory
- Products and categories with images
- Colour × size variants
- Stock entry and stock adjustment
- Inventory view and product overview
- Barcode label printing
Sales & Dues
- Orders list
- unpaid orders and order view
- Add payment to a bill
- Due collection and due report
- Sales report
- Profit and loss report
Vendors & Purchasing
- Vendor records and history
- Purchase entry with purchase invoice
- Vendor payments
- Vendor returns with print
- Vendor purchase and product reports
Cash
- Cash book
- Petty cash
- Configurable payment methods
Salesmen
- Salesman management
- Salesman-wise reports
Administration
- User management with role-based permissions
- Site settings and branding (shop name
- logo
- colours
- currency)
- Audit log viewer
- Database backup
- export and import
- Background image management
Setup & Operations
- Setup wizard that creates tables
- shop and first Admin
- Numbered schema migrations run via migrate_cli.php
- CLI backup script
- Docker Compose with MariaDB 10.11 and PHP 8.3 Apache image
- One-click demo mode with Admin
- Manager and Cashier logins
| Language | Version | Framework | Used for | Share of code |
|---|---|---|---|---|
| PHP | — | — | Web, API | 76.8% |
| CSS | — | — | Styling | 8.9% |
| JavaScript | — | — | Front-end | 7.8% |
| SQL | — | — | Database | 6.2% |
| Shell | — | — | Scripts | 0.1% |
| HTML | — | — | Front-end | 0.1% |
- Primary language
- PHP 8.2+ (tested on 8.3)
- Framework
- None (plain PHP, no framework)
- Database
- MariaDB 10.4+ or MySQL 8.0+ (InnoDB, utf8mb4)
- Authentication
- Session login with bcrypt passwords, CSRF tokens, login lockout and role-based permission checks
- Licence
- Single-site
- Screens
- 54
- Database tables
- 24
- Supported languages
- English UI; no translation files evidenced; no RTL support evidenced
- Browser support
- Modern browsers; Chromium is the one tested in the release checks, others not evidenced
| Minimum | Recommended | |
|---|---|---|
| CPU | 1 vCPU | 2 vCPU |
| RAM | 1 GB (estimate) | 2 GB (estimate) |
| OS | Linux or Windowswith Apache or Nginx + PHP 8.2+ and MariaDB 10.4+ / MySQL 8.0+; Docker image uses php:8.3.32-apache and mariadb:10.11.19 | Linux or Windowswith Apache or Nginx + PHP 8.2+ and MariaDB 10.4+ / MySQL 8.0+; Docker image uses php:8.3.32-apache and mariadb:10.11.19 |
| Est. monthly hosting | $5 | $5 |
```bash cp .env.example .env # or export DB_NAME, DB_USER, DB_PASS, DB_ROOT_PASS docker compose up -d --build ``` Open http://localhost:8080 and let the setup wizard create the tables and the first Admin login.
```bash cp "PHP POS App/config/config.example.php" "PHP POS App/config/config.php" mysql -u USER -p YOUR_DB < database/schema.sql cd "PHP POS App" && php migrate_cli.php ``` Point the web server document root at `PHP POS App/`, then open the site and create the first Admin.
1. Create a database and user in the host's control panel. 2. Import the schema without the CREATE DATABASE and USE lines: ```bash grep -v '^CREATE DATABASE\|^USE ' database/schema.sql | mysql -u USER -p YOUR_DB ``` 3. Upload the contents of `PHP POS App/` and open the site to run the setup wizard.
Quality report
Manually reviewedHow to read the quality report
What this is. Every project on Vibe96 goes through an automated audit of its source code before a reviewer in Dubai checks it by hand. The score is out of 100; 75 is the minimum to be listed, and any single failing check blocks a listing regardless of the score.
- Security
- No real credentials in the code, every data-changing route protected, admin areas role-gated, no SQL built from user input.
- Code structure
- A developer can navigate and extend it: clear module boundaries, no giant files, little copy-paste.
- Docs & completeness
- The setup guide, example config, schema and required files the builder committed to are actually in the archive.
- Dependency health
- Packages pinned, no known critical vulnerabilities, no abandoned libraries in production paths.
- Build & deploy
- A clean machine can restore, build and start it by following the shipped instructions.
Warnings are problems that didn't block the listing; they stay visible here until a later version clears them. The audit reads the code — it does not run it — so always try the live demo before you buy. Lines of code are counted from the same audited archive.
Reviewer notes (2 minor)
Authz design looks solid, but most guard files were not visible so it cannot be fully verified; parameterized sql helpers and strong schema evidence, but most sql files were not visible to audit. None of these stop the software from working; the developer has been told and improvements come in a future update.
Versions & updates
No updates yet. New versions appear here with a changelog.
Buyers receive updates free for 1 year.
What you get
- </>Full source codeThe complete audited source, delivered as a download from your account. No obfuscation.
- ▤DocumentationSetup guide, architecture notes, CLAUDE.md and AGENTS.md.
- ↻One year of updatesEvery new version the builder publishes, free for 12 months.
- ♧30 days of supportInstallation and defect support through Vibe96 tickets.