How reloadly/sample-airtime-topup-platform works
Reloadly Sample Topup is a Laravel/Vue airtime top-up platform with gift-card sales, invoices and wallets, account administration, and Reloadly integrations. A user can submit a phone-number file, have entries matched to operators, configure and schedule top-ups, then have pending top-ups sent to Reloadly. Gift-card purchases and invoice payments are separate product branches. The graph emphasizes workflows visible in excerpts and documented routes; several controller and payment details are represented only at the subsystem level because their implementation was not sampled.
Main entry points: WizardController.php File and scheduling workflow · GiftCardProductsController.php Gift-card sales · web.php Web routes · System.php Operator detection and payments
Components 22
Airtime top-ups
- Top-up wizard UI
resources/js/components/TopupWizard.vue - Send top-up UI
resources/js/components/SendTopup.vue - File and scheduling workflow
app/Http/Controllers/WizardController.php - File processing
app/Models/File.php - Top-up execution
app/Models/Topup.php - Countries
app/Models/Country.php - Operators
app/Models/Operator.php
Gift cards
- Gift-card sales
app/Http/Controllers/GiftCardProductsController.php - Gift-card wizard UI
resources/js/components/GiftCards/GiftsWizard.vue - Gift-card products
app/Models/GiftCardProduct.php - Gift-card transactions
app/Models/GiftCardTransaction.php
Accounts and billing
- Operator detection and payments
app/Models/System.php - Invoice management
app/Http/Controllers/InvoicesController.php - Invoices
app/Models/Invoice.php - Account transactions
app/Models/AccountTransaction.php - User accounts
app/Models/User.php - Payment providers
app/Traits/StripeSystem.php
Web application
- Web routes
routes/web.php - Vue registration
resources/js/app.js
Other components
- User
- Reloadly API
- Application database
Connections 28
- User → Web routes: uses
README.md - Web routes → File and scheduling workflow: routes to
routes/web.php - Web routes → Gift-card sales: routes to
routes/web.php - Web routes → Invoice management: routes to
routes/web.php - Vue registration → Top-up wizard UI: registers
resources/js/app.js - Vue registration → Send top-up UI: registers
resources/js/app.js - Vue registration → Gift-card wizard UI: registers
resources/js/app.js - File and scheduling workflow → File processing: reads entries
app/Http/Controllers/WizardController.php - File processing → Operator detection and payments: detects operator
app/Models/File.php - Operator detection and payments → Operators: looks up
app/Models/System.php - File and scheduling workflow → Operators: loads operator
app/Http/Controllers/WizardController.php - File and scheduling workflow → Invoices: creates
app/Http/Controllers/WizardController.php - File and scheduling workflow → Top-up execution: creates
app/Http/Controllers/WizardController.php - Top-up execution → Reloadly API: sends top-up
app/Models/Topup.php - Gift-card sales → Gift-card products: queries
app/Http/Controllers/GiftCardProductsController.php - Gift-card sales → Gift-card transactions: creates or checks
app/Http/Controllers/GiftCardProductsController.php - Gift-card sales → Invoices: creates
app/Http/Controllers/GiftCardProductsController.php - Invoice management → Invoices: loads and updates
app/Http/Controllers/InvoicesController.php - Invoice management → Operator detection and payments: updates payment
app/Http/Controllers/InvoicesController.php - Operator detection and payments → Payment providers: uses
app/Models/System.php - Top-up execution → Application database: persists status
- Invoices → Application database: persists records
- Account transactions → Application database: persists records
- User accounts → Application database: persists accounts
- Gift-card products → Application database: stores catalog
- Gift-card transactions → Application database: stores purchases
- Countries → Application database: stores catalog
- Operators → Application database: stores catalog