Foundation Dashboard
Enterprise Brick Kiln Management System • Phase 0 Foundation
The Brick Kiln ERP foundation is built on an enterprise-grade modular MVC architecture utilizing native PHP 8.2+, PDO with prepared statements, strict input escaping, and CSRF middleware. No Node.js build step is required at runtime.
Single entry point (public/index.php) with regex parameter parsing and middleware pipelines.
.htaccess denies direct access to app/, config/, database/, and storage/.
Timing-safe token comparison, per-session tokens, and automated HTML escaping via e().
Strict SameSite/HttpOnly cookies and permanent installer lock via storage/installed.lock.
| Phase | Module / Scope | Status | Target |
|---|---|---|---|
| Phase 0 | ERP Foundation, Layout, Routing, Database PDO Layer, Health & Setup Guard | Complete | Complete |
| Phase 1 | Authentication, Sessions, Role Permissions & Kiln Settings | Complete | Active Now |
| Phase 2 | Master Data (Yearly Sessions, Standard Brick Types, Units) | Ready to Start | Next Step |
| Phase 2 | Master Data (Yearly Sessions, Standard Brick Types, Units) | Planned | Scheduled |
| Phase 3 | Labour & Contractor Management (Piece rates, Advances/Peshgi, Work logs) | Planned | Scheduled |
| Phase 4 | Raw Material & Fuel Purchases (Coal consignments, Weighbridge slips, Suppliers) | Planned | Scheduled |
| Phase 5 | Kiln Production Cycles (Molding, Bharai loading, Jalai firing, Nikasi unloading) | Planned | Scheduled |
| Phase 6 | Inventory Management (Grading: Awal, Dom, Som, Khangar, Pilla, Broken) | Planned | Scheduled |
| Phase 7 | Buyer Master & Dual Ledgers (Financial Money Ledger + Quantitative Brick Ledger) | Planned | Scheduled |
| Phase 8 | Sales Dispatch, Delivery Challans, Gate Passes & Vehicle Tracking | Planned | Scheduled |
| Phase 9 | Cashbook, Safe & Banking, Daily Vouchers, Operational Expenses | Planned | Scheduled |
| Phase 10 | Executive Reports, Daily Production Sheets, Print/PDF, Backups | Planned | Scheduled |
- PHP Version 8.3.35
- Database Driver PDO (MySQL / MariaDB)
- Installation Lock Sealed
- Runtime Node.js Not Required (Zero Dep)
- UI Theme Professional Light • Brick Accent
storage/installed.lock.
Reinstallation through the browser is blocked for security. To re-run the wizard, the lock file must be manually removed on the server.