How technodweep/gst-invoice works
GST Invoice is a PHP/Yii2 web application for maintaining customers, products and tax/business settings, then creating and printing GST invoices. The visible invoice controller loads and saves invoice models, reads settings and tax rates, and prepares invoice-item forms; customer and product controllers provide related CRUD and lookup workflows. The README documents MySQL-backed self-hosting and invoice PDF/print output. Source excerpts establish controller/model interactions, but do not show the full persistence or routing implementation, so those links are omitted or marked unverified.
Main entry points: main.php Navigation layout · InvoiceOrderController.php Invoice workflow · CustomersController.php Customer management · ProductsController.php Product management
Components 20
Web application
- Web entry
web/index.php - App configuration
config/web.php - Navigation layout
views/layouts/main.php - Site and login
controllers/SiteController.php
Billing records
- Invoice workflow
controllers/InvoiceOrderController.php - Invoice records
models/InvoiceOrder.php - Invoice screens
views/invoice-order - Customer management
controllers/CustomersController.php - Customer records
models/Customers.php - Customer screens
views/customers
Business data
- Product management
controllers/ProductsController.php - Product records
models/Products.php - Product screens
views/products - Business settings
controllers/SettingsController.php - Settings records
models/Settings.php - Tax settings
controllers/TaxSettingsController.php - Tax records
models/TaxSettings.php
Persistence
- Database connection
config/db.php - MySQL database
Other components
- Business user
Connections 23
- Business user → Web entry: opens app
web/index.php - Web entry → App configuration: loads config
web/index.php - App configuration → Database connection: loads connection
config/web.php - Navigation layout → Invoice workflow: links orders
views/layouts/main.php - Navigation layout → Product management: links products
views/layouts/main.php - Navigation layout → Customer management: links customers
views/layouts/main.php - Navigation layout → Business settings: links settings
views/layouts/main.php - Navigation layout → Tax settings: links tax settings
views/layouts/main.php - Invoice workflow → Invoice records: loads and saves
controllers/InvoiceOrderController.php - Invoice workflow → Settings records: reads settings
controllers/InvoiceOrderController.php - Invoice workflow → Tax records: reads tax rates
controllers/InvoiceOrderController.php - Customer management → Customer records: loads and saves
controllers/CustomersController.php - Customer management → Customer screens: renders screens
controllers/CustomersController.php - Product management → Product records: loads and saves
controllers/ProductsController.php - Business settings → Settings records: loads and saves
controllers/SettingsController.php - Tax settings → Tax records: loads and saves
controllers/TaxSettingsController.php - Database connection → MySQL database: connects to
README.md - Invoice records → MySQL database: persists records
- Customer records → MySQL database: persists records
- Product records → MySQL database: persists records
- Invoice screens → Invoice workflow: serves invoice UI
- Product screens → Product management: serves product UI
- Site and login → Business user: authenticates