Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Cpanel

Laravel Cpanel Laravel Package

webreinvent/laravel-cpanel

Webreinvent's laravel-cpanel package provides a fluent wrapper around the cPanel API (UAPI), letting you manage email accounts, databases, domains, FTP users, and more from your Laravel app with a clean, expressive PHP interface.

View on GitHub
Deep Wiki
Context7

Laravel CPanel UAPI | Manage your CPanel from Laravel

Frequently asked questions about Laravel Cpanel
What is webreinvent/laravel-cpanel used for?
It is a Laravel package that wraps cPanel's UAPI/API2 so you can manage cPanel account operations from PHP using Laravel-native service provider, facade, and configuration patterns. Typical uses include provisioning email accounts, databases, domains, FTP users, and internal admin tooling for shared hosting or reseller environments. It is best suited for Laravel apps that need to automate cPanel operations rather than high-scale multi-tenant platforms without an internal abstraction layer.
How do I install webreinvent/laravel-cpanel in a Laravel app?
Install it with Composer, then publish the package configuration and set your cPanel host and credentials or API token. In Laravel you can call the package through its facade or inject its services into your own classes. The package follows standard Laravel package discovery and configuration conventions, so it can be introduced incrementally.
Which Laravel and PHP versions does laravel-cpanel v1.3.8 support?
The provided evaluation does not list exact Laravel and PHP version constraints for v1.3.8. Check the package's composer.json and repository documentation for the officially supported versions before adding it to your application. Confirm those constraints match your Laravel and PHP runtime, especially if you are on a newer major Laravel release.
Does laravel-cpanel support cPanel API tokens or only username/password authentication?
The integration notes say the package can be configured with cPanel host and credentials or an API token. In practice, token-based authentication is preferable where your cPanel environment supports it because it avoids storing a primary account password. Verify token support against your cPanel version and the package configuration before relying on it in production.
How should I configure cPanel credentials for laravel-cpanel?
Store cPanel credentials or API tokens in a secrets manager or environment variables, never in source control. Scope the cPanel account or token to the minimum privileges required for the operations you actually run. Also confirm firewall allowlists, valid TLS, and a reachable cPanel hostname from your Laravel runtime.
Can laravel-cpanel manage email accounts, databases, domains, and FTP users?
Yes, the package exposes cPanel UAPI operations for common provisioning tasks such as email accounts, databases, domains, and FTP users. Read-only operations like listing accounts or databases are lower risk and a good starting point. Write and delete operations should be validated, logged, and tested in staging before production use.
How does laravel-cpanel handle cPanel API errors and partial failures?
The package wraps cPanel API responses, but cPanel behavior can vary by version, server configuration, and hosting provider. You should explicitly validate return values, error handling, and post-operation state rather than assuming every call succeeds atomically. For retries, make operations idempotent and add reconciliation jobs for partial failures such as orphaned database users or inconsistent privileges.
Is laravel-cpanel safe for production destructive operations like deleting database users?
Version 1.3.8 includes a fix for the database delete-user workflow, which improves reliability for that destructive operation. However, you should still test deletion and privilege revocation in a staging environment that mirrors production permissions. Add audit logging, validation, and post-deletion checks to detect orphaned grants or inconsistent database state.
Can I test laravel-cpanel against a staging cPanel server?
Yes, testing against a staging cPanel environment is recommended and should mirror production API access and permission settings. Use the staging server to exercise read-only calls first, then write and delete operations with the same authentication method you plan to use in production. Confirm timeouts, firewall rules, TLS, and error responses behave the same as production before promoting changes.
What are the maintenance risks and alternatives to laravel-cpanel?
It appears to be a smaller community package rather than a vendor-supported SDK, so confirm release cadence, issue responsiveness, changelog quality, and test coverage before depending on it. Wrap it behind your own interface, such as a CpanelProvisioner contract, so the application is not directly coupled to the package API. If the package is abandoned, that abstraction lets you replace it with direct cPanel API calls or another wrapper with limited changes.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
cgv/localized-resource