How pappastech/ospos works
Project type and purpose
• This is “ospos” (Open Source Point of Sale), a monolithic, full-stack web application.
• Built on the PHP CodeIgniter 2/3 MVC framework.
• Provides point-of-sale functions (sales, receivings, reports, inventory, customers, employees, etc.).
File structure
• Top-level:
• index.php – front controller
• application/ – your MVC app code
• system/ – CodeIgniter core
• css/, js/, images/ – static assets
• database/database.sql – DB schema dump
• application/:
• config/ – CI configuration (routes, database, autoload)
• controllers/ – HTTP request handlers (barcode, sales, reports…)
• models/ – data layer (Sale, Customer, Inventory, Reports subfolder…)
• views/ – UI templates (HTML + PHP for each module)
• libraries/ – custom CI libraries (MY_Session, charting libs, business-logic libs)
• helpers/ – procedural utilities (currency, tables)
• cache/, logs/ – on-disk storage for CI cache and runtime logs
• system/:
• core/, database/, libraries/, helpers/ – CodeIgniter framework internals
• static assets serve client-side UI (CSS, JS, images).
README
• Only a brief project title (“ospos”) and description (“Open Source Point of Sale”).
Detail
• Subcomponents: Router, Controllers, Business-logic libraries, Report modules, Chart engine, Session store, File cache.
• External integrations (email service for receipts, printing endpoint, CSV import).
• Visually separate code modules by folder: application/controllers, models, views, libraries, helpers.