How codepagol/isp-mikrotik-billing works
This Laravel ISP platform lets administrators, resellers, and subscribers manage internet packages, customer billing, router access, and payment. The principal flow is a customer payment or voucher redemption, followed by payment reconciliation and billing updates, then subscriber activation on MikroTik; resellers also manage wallets, packages, and vouchers. Admins operate router and audit features through the application. README documents webhook activation, scheduled billing and router-log polling, RBAC, and SMS integrations; some subsystem links are therefore documented rather than source-verified.
Main entry points: PaymentService.php Payment Reconciliation · CustomersInfo.php Customer Records · MikrotikController.php Router Management · Reseller.php Reseller Accounts
Components 27
Application Access
- Laravel Filament App
routes/web.php - Access Control
app/Http/Middleware
Subscriber Billing
- Customer Management
app/Livewire - Customer Records
app/Models/CustomersInfo.php - Packages
app/Models/PackageList.php - Billing Records
app/Models/BillingInfo.php - Payment Collections
app/Models/CollectionSummary.php - Payment Summaries
app/Models/PaymentSummary.php
Router Operations
- Router Management
app/Http/Controllers/MikrotikController.php - RouterOS API
app/Services/MikrotikApiService.php - Router SSH
app/Services/MikrotikSSHService.php - Router Registry
app/Models/RouterList.php - Hotspot Vouchers
app/Livewire/Mikrotik/HotspotManager.php - Router Log Polling
app/Console/Commands/PollRouterLogs.php
Payments Resellers
- Payment Reconciliation
app/Services/PaymentService.php - Payment Webhooks
app/Http/Controllers/Payment/WebhookPaymentController.php - Reseller Administration
app/Http/Controllers/Admin/ResellerController.php - Reseller Dashboard
app/Http/Controllers/Reseller/ResellerDashboardController.php - Reseller Accounts
app/Models/Reseller.php - Reseller Wallet
app/Services/ResellerWalletService.php - Reseller Vouchers
app/Models/Voucher.php - Commission Records
app/Models/ResellerCommission.php - Wallet Transactions
app/Models/ResellerWalletTransaction.php - SMS Notifications
app/Http/Controllers/SMSController.php
Other components
- Client / Admin
- SMS Forwarder
- bKash IPN
Connections 33
- Client / Admin → Laravel Filament App: uses
README.md - Laravel Filament App → Access Control: checks access
README.md - Laravel Filament App → Customer Management: manages subscribers
- Customer Management → Customer Records: updates
- Customer Records → Packages: references package
app/Models/CustomersInfo.php - Customer Records → Billing Records: links billing
app/Models/CustomersInfo.php - Customer Records → Payment Collections: links collections
app/Models/CustomersInfo.php - Customer Records → Payment Summaries: links summaries
app/Models/CustomersInfo.php - Client / Admin → Payment Webhooks: sends payment
- SMS Forwarder → Payment Webhooks: posts SMS webhook
README.md - bKash IPN → Payment Webhooks: sends IPN
README.md - Payment Webhooks → Payment Reconciliation: reconciles payment
- Payment Reconciliation → Billing Records: updates billing
app/Services/PaymentService.php - Payment Reconciliation → Payment Collections: records payment
app/Services/PaymentService.php - Payment Reconciliation → Payment Summaries: updates summary
app/Services/PaymentService.php - Payment Reconciliation → Customer Records: updates status
app/Services/PaymentService.php - Payment Reconciliation → Router Management: activates subscriber
README.md - Payment Reconciliation → SMS Notifications: sends confirmation
app/Services/PaymentService.php - Router Management → RouterOS API: uses API
app/Http/Controllers/MikrotikController.php - Router Management → Router SSH: uses SSH
app/Http/Controllers/MikrotikController.php - Router Management → Router Registry: loads routers
app/Http/Controllers/MikrotikController.php - Hotspot Vouchers → Router Management: manages router users
app/Livewire/Mikrotik/HotspotManager.php - Hotspot Vouchers → Reseller Vouchers: syncs vouchers
app/Livewire/Mikrotik/HotspotManager.php - Router Log Polling → Router Management: polls logs
app/Console/Commands/PollRouterLogs.php - Router Log Polling → Router Registry: reads routers
app/Console/Commands/PollRouterLogs.php - Reseller Administration → Reseller Accounts: manages accounts
app/Http/Controllers/Admin/ResellerController.php - Reseller Dashboard → Reseller Accounts: loads reseller
app/Http/Controllers/Reseller/ResellerDashboardController.php - Reseller Administration → Reseller Wallet: uses wallet service
app/Http/Controllers/Admin/ResellerController.php - Reseller Wallet → Reseller Accounts: updates balance
app/Services/ResellerWalletService.php - Reseller Accounts → Wallet Transactions: has transactions
app/Models/Reseller.php - Reseller Accounts → Commission Records: has commissions
app/Models/Reseller.php - Reseller Accounts → Reseller Vouchers: has vouchers
app/Models/Reseller.php - Reseller Dashboard → Reseller Vouchers: loads vouchers
app/Http/Controllers/Reseller/ResellerDashboardController.php