NexPanel module for WHMCS
=========================

Requirements: WHMCS 8.x, PHP 7.4 or newer with curl, NexPanel 1.0.17 or newer.

1. Copy the "modules" folder into your WHMCS folder, so that
   modules/servers/nexpanel/nexpanel.php exists.
2. In NexPanel: Administration > API Tokens > create a token with
   accounts:read, accounts:write, accounts:login and nodes:read.
3. In WHMCS: System Settings > Servers > Add New Server
     Module:     NexPanel
     Hostname:   the panel address (e.g. panel.example.com or the server IP)
     Port:       2087 (tick "Override with Custom Port" if WHMCS asks)
     Password:   the API token (the Access Hash field works too)
     Username:   leave empty (or "noverify" for a self-signed certificate)
   Click Test Connection.
4. Products/Services > a product > Module Settings: Module NexPanel, then pick
   the NexPanel package, and optionally the hosting server and PHP version.

Clients get "Log in to NexPanel" plus one-click links (email, files,
databases, DNS, SSL, backups, WordPress ...) in their client area. Disk usage
is updated by the WHMCS daily cron (Update Usage Statistics). Utilities >
Server Sync imports existing NexPanel accounts.

Docs: https://nexpanel.app/docs/billing-modules
