How fauzan1892/pos-kasir-php works
POS Codekop is a PHP/MySQL point-of-sale application for a small retailer. An admin signs in, enters the routed dashboard, manages products and categories, then uses the AJAX cashier to build a cart and complete a transaction; the result is stored as a numbered sale and can be printed. Separate admin pages support reporting, store settings, and user-profile management, with Excel/PDF exports. The graph follows the README and sampled entry points; several subsystem connections are documented but their implementation was not sampled, so uncertain call wiring is omitted.
Main entry points: index.php Admin router · barang/index.php Product management · edit.php Edit operations · kategori/index.php Category management
Components 25
Access and shell
- Sign in
login.php - Admin router
index.php - Session and CSRF
fungsi/csrf.php - DB configuration
config.php - Dashboard shell
admin/template/home.php - Sign out
logout.php
Retail catalog
- Product management
admin/module/barang/index.php - Product details
admin/module/barang/details/index.php - Product editing
admin/module/barang/edit/index.php - Category management
admin/module/kategori/index.php - Catalog queries
fungsi/view/view.php - Data mutations
fungsi/tambah/tambah.php - Edit operations
fungsi/edit/edit.php - Delete operations
fungsi/hapus/hapus.php
Sales and reports
- Cashier screen
admin/module/jual/index.php - Cashier actions
fungsi/kasir/kasir.php - Sales reports
admin/module/laporan/index.php - Excel export
excel.php - PDF export
pdf.php - Receipt printing
print.php - Thermal printing
print_thermal.php
Store administration
- Store settings
admin/module/pengaturan/index.php - User profile
admin/module/user/index.php
Other components
- Cashier
- POS database
Connections 45
- Cashier → Sign in: signs in
- Sign in → Session and CSRF: manages session
- Sign in → POS database: checks account
- Sign in → Admin router: redirects
- Admin router → Session and CSRF: checks session
- Admin router → DB configuration: loads config
- DB configuration → POS database: connects
- Admin router → Dashboard shell: renders shell
- Admin router → Product management: routes page
- Admin router → Product details: routes page
- Admin router → Product editing: routes page
- Admin router → Category management: routes page
- Admin router → Sales reports: routes page
- Admin router → Store settings: routes page
- Admin router → User profile: routes page
- Product management → POS database: queries inventory
- Product management → Catalog queries: loads catalog data
- Category management → Catalog queries: loads categories
- Catalog queries → POS database: queries
- Product management → Data mutations: adds records
- Category management → Data mutations: adds records
- Product management → Edit operations: updates stock
- Product editing → Edit operations: submits changes
- Category management → Edit operations: submits changes
- Product management → Delete operations: deletes records
- Category management → Delete operations: deletes records
- Data mutations → POS database: writes
- Edit operations → POS database: updates
- Delete operations → POS database: deletes
- Cashier → Cashier screen: runs checkout
- Cashier screen → Cashier actions: posts actions
- Cashier actions → POS database: reads and writes
- Cashier screen → Receipt printing: opens receipt
- Receipt printing → POS database: loads transaction
- Sales reports → Catalog queries: loads sales data
- Sales reports → Excel export: requests export
- Sales reports → PDF export: requests export
- Excel export → POS database: reads sales
- PDF export → POS database: reads sales
- Thermal printing → POS database: prints receipt data
- Store settings → Edit operations: saves settings
- User profile → Edit operations: updates profile
- User profile → POS database: loads profile
- Cashier → Sign out: ends session
- Sign out → Session and CSRF: clears session