How rupertgalit/sales-invoice works
This repository combines a CodeIgniter 3 PHP application with a REST-controller library; its visible default application route renders a sales-invoice view. The runtime path is HTTP request → framework routing/bootstrap → controller → view. REST request parsing and API-key/rate-limit checks are also present in the sampled library, but no application REST endpoint is shown. The README provides no product detail, and frontend assets are absent from the supplied tree, so the invoice view’s behavior and any broader dashboard workflow cannot be established here.
Main entry points: CodeIgniter.php Framework bootstrap · Loader.php Class and view loader · DB_query_builder.php Query builder · REST_Controller.php REST controller
Components 19
Application
- Route configuration
application/config/routes.php - Sales invoice controller
application/controllers/SalesInvoice.php - Sales invoice view
application/views/sales_invoice.php - Welcome controller
application/controllers/Welcome.php
REST API
- REST controller
application/libraries/REST_Controller.php - REST configuration
application/config/rest.php - Response formatter
application/libraries/Format.php
CodeIgniter Runtime
- PHP entry point
index.php - Framework bootstrap
system/core/CodeIgniter.php - URI router
system/core/Router.php - Core services
system/core - Class and view loader
system/core/Loader.php - Controller base
system/core/Controller.php
Persistence
- Query builder
system/database/DB_query_builder.php - Database drivers
system/database/drivers - Database configuration
application/config/database.php - Session manager
system/libraries/Session/Session.php - Database session driver
system/libraries/Session/drivers/Session_database_driver.php
Other components
- Browser
Connections 16
- Browser → PHP entry point: sends request
- PHP entry point → Framework bootstrap: starts runtime
index.php - Framework bootstrap → URI router: initializes routing
system/core/CodeIgniter.php - URI router → Route configuration: loads routes
system/core/Router.php - Route configuration → Sales invoice controller: defaults to
application/config/routes.php - Sales invoice controller → Class and view loader: loads view via
application/controllers/SalesInvoice.php - Class and view loader → Sales invoice view: renders
- Framework bootstrap → Core services: initializes services
system/core/CodeIgniter.php - Controller base → Class and view loader: initializes
system/core/Controller.php - Framework bootstrap → Controller base: dispatches controller
system/core/CodeIgniter.php - REST controller → REST configuration: reads settings
- REST controller → Query builder: checks keys and limits
application/libraries/REST_Controller.php - Query builder → Database drivers: uses driver
- Database configuration → Database drivers: configures connection
- Session manager → Database session driver: loads configured driver
system/libraries/Session/Session.php - Database session driver → Query builder: reads and writes session data
system/libraries/Session/drivers/Session_database_driver.php