How hotspotbilling/phpnuxbill works
PHPNuxBill is a PHP/MikroTik hotspot and ISP billing application. Its main workflow is customer or administrator access, plan/order and payment handling, then service provisioning through router or FreeRADIUS integrations; vouchers and account balance support alternate access and renewal paths. The README documents these product capabilities, while sampled controller excerpts confirm ORM-backed plan/router management and device calls. Source excerpts are selective, so uncertain internal dispatch and notification wiring are not shown.
Main entry points: orm.php ORM data access · services.php Plan management · index.php Web entry · MikrotikHotspot.php Hotspot device
Components 22
Application entry
- Web entry
index.php - Application boot
system/boot.php
Accounts and sales
- Login and registration
system/controllers/login.php - Account management
system/controllers/accounts.php - Plan management
system/controllers/services.php - Order handling
system/controllers/order.php - Payment gateways
system/controllers/paymentgateway.php - Voucher management
system/controllers/voucher.php - Balance features
system/autoload/Balance.php
Service provisioning
- Router management
system/controllers/routers.php - Hotspot device
system/devices/MikrotikHotspot.php - PPPoE device
system/devices/MikrotikPppoe.php - VPN device
system/devices/MikrotikVpn.php - RADIUS device
system/devices/Radius.php - FreeRADIUS interface
radius.php
Billing operations
- ORM data access
system/orm.php - Renewal and jobs
system/cron.php - Billing reminders
system/cron_reminder.php
Other components
- Customer
- Administrator
- MikroTik router
- MySQL database
Connections 24
- Customer → Web entry: accesses
- Administrator → Web entry: manages
- Web entry → Application boot: loads
- Application boot → Login and registration: dispatches
- Login and registration → ORM data access: reads and writes
- Account management → ORM data access: reads and writes
- Plan management → ORM data access: reads and writes
- Plan management → Hotspot device: provisions plans
- Plan management → PPPoE device: provisions plans
- Plan management → VPN device: provisions plans
- Order handling → ORM data access: reads and writes
- Order handling → Payment gateways: handles payment
- Voucher management → ORM data access: reads and writes
- Balance features → ORM data access: uses account data
- Router management → ORM data access: reads and writes
- Router management → Hotspot device: tests connection
- Hotspot device → MikroTik router: controls
- PPPoE device → MikroTik router: controls
- VPN device → MikroTik router: controls
- RADIUS device → FreeRADIUS interface: uses
- FreeRADIUS interface → MySQL database: serves authentication
- ORM data access → MySQL database: queries
- Renewal and jobs → Balance features: renews from balance
- Billing reminders → ORM data access: reads billing data