How m7madi8/oday-os works
This is Invoice Ninja 5, customized for Oday Abu Doha Architects: a multi-tenant invoicing and business-management application with API, client-facing portal, and mobile/desktop clients. The documented core workflow validates an API request, saves an invoice through a repository, applies invoice-service actions, emits an event, then transforms the response. The graph also preserves major billing, document, import, reporting, and Oday backup capabilities. Source excerpts are partial, so unsampled subsystem links are omitted unless the README documents them.
Main entry points: InvoiceInvitation.php Invoice records · Controllers Invoice controller · Invoice Invoice service · BackupEngine.php Oday backups
Components 23
API workflow
- API request
app/Http/Controllers - Request validation
app/Http/Requests - Invoice controller
app/Http/Controllers - Invoice repository
app/Repositories - Invoice service
app/Services/Invoice - Invoice events
app/Events/Invoice - API transformation
app/Http/Controllers/BaseController.php
Business operations
- Invoice records
app/Models/InvoiceInvitation.php - Client portal
app/Http/Controllers/ClientPortal - Payment operations
app/Models/Payment.php - Quotes and orders
app/Models/PurchaseOrder.php - Expense intake
app/Services/InboundMail/InboundMailEngine.php
Documents and messaging
- PDF previews
app/Http/Controllers/PreviewController.php - Order previews
app/Http/Controllers/PreviewPurchaseOrderController.php - Document rendering
app/Utils/HtmlEngine.php - Payment email
app/Mail/Engine/PaymentEmailEngine.php
Imports and integrations
- CSV imports
app/Jobs/Import/CSVIngest.php - Accounting integrations
app/DataMapper/QuickbooksSync.php - Reports and exports
app/Export/CSV
Oday extensions
- Oday backups
app/Services/Oday/Backup/BackupEngine.php - Local backup storage
- Drive backup storage
Other components
- Business user
Connections 19
- Business user → API request: submits
README.md - API request → Request validation: validates
README.md - Request validation → Invoice controller: passes request
README.md - Invoice controller → Invoice repository: saves invoice
README.md - Invoice repository → Invoice service: returns invoice
README.md - Invoice service → Invoice events: fires event
README.md - Invoice controller → API transformation: returns response
README.md - Invoice service → Invoice records: persists
- Business user → Client portal: uses portal
README.md - Business user → PDF previews: requests preview
app/Http/Controllers/PreviewController.php - PDF previews → Document rendering: renders content
- Business user → Order previews: requests preview
app/Http/Controllers/PreviewPurchaseOrderController.php - Expense intake → Invoice records: parses documents
- CSV imports → Invoice records: imports records
- Business user → CSV imports: imports data
- Invoice records → Reports and exports: exports data
- Payment operations → Payment email: composes email
app/Mail/Engine/PaymentEmailEngine.php - Oday backups → Local backup storage: writes backup
app/Services/Oday/Backup/BackupEngine.php - Oday backups → Drive backup storage: uploads backup
app/Services/Oday/Backup/BackupEngine.php