itxshakil/cpanel-whm
A Laravel/PHP client for the cPanel and WHM APIs, making it easy to automate hosting tasks such as creating accounts, managing DNS, email, databases, and other server operations directly from your application.
composer require and publish the config (php artisan vendor:publish --tag=whm-config). Set WHM_HOST, WHM_USERNAME, and either WHM_TOKEN or WHM_PASSWORD in .env, plus the cache store used for cached reads.config/whm.php (connection, cache, and timeout options) and the Whm facade's method list. The facade is the primary entry point; most day-to-day work is a single call like Whm::listAccounts() or Whm::createAccount(...).Whm::flushCache() yourself unless something changed outside the package (e.g. another integration, or a manual WHM action).Whm::flushCache() — but wrap it in try/catch, since the direct call still throws (see Gotchas).Whm::flushCache() still throws. If you call it directly (e.g. in a scheduled command or after an out-of-band change), catch the exception; it is not covered by the new swallow-and-report behavior.How can I help you explore Laravel packages today?