WHMCS Importer
This guide will help you migrate from WHMCS to Paymenter.
This will import the following data from your WHMCS installation:
- Currencies
- Users (clients)
- Admins
- Categories
- Products
- Tickets
- Orders
- Services
- Service Cancellations
- Invoices
- Payments
WARNING
This will remove all existing data in your Paymenter installation! Make sure to back up your data before proceeding.
1. Backup Your Data
Start by backing up your WHMCS database:
mysqldump -u root -p whmcs > whmcs.sql2. Install Paymenter
Follow the Installation Guide to install the latest version.
3. Create a Temporary Database
You’ll need a temporary database to import your old data:
mysql -u root -pInside the MySQL shell:
CREATE DATABASE whmcs_temp;
GRANT ALL PRIVILEGES ON whmcs_temp.* TO 'paymenter'@'127.0.0.1' WITH GRANT OPTION;Now import your backup into the temporary database:
mysql -u root -p whmcs_temp < whmcs.sql4. Migrate the Data
Run the migration command:
php artisan app:import-from-whmcs whmcs_tempThis command will prompt you for the database user’s password.
It uses your
.envfile to read the host, port, and username automatically.
Want to set them manually? Use this format:bashphp artisan app:import-from-whmcs whmcs_temp username 127.0.0.1 3306
5. Cleanup
Once the migration is complete, you can remove the temporary database:
mysql -u root -pInside the MySQL shell:
DROP DATABASE whmcs_temp;6. You're Done
You've successfully migrated from WHMCS to Paymenter!
If you encounter any issues, feel free to open an issue on GitHub.