1. Go to this page and download the library: Download tallesairan/cpanel library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
// Set the "en" locale for the account.
$new_language = $cpanel->api1(
'SetLang', 'setlang',
array('en')
);
$uapi = new cPanel( $user , $pass, $srv, 2083);
# Set the "en" locale for the account.
$setLocale = ($uapi->execute('uapi', 'Locale', 'set_locale',[
'locale' => 'en',
]));
$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
// Set the "en" locale for the account.
$set_locale = $cpanel->uapi(
'Locale', 'set_locale',
array(
'locale' => 'en',
)
);
$uapi = new cPanel( $user , $pass, $srv, 2083);
# Set the "en" locale for the account.
$setLocale = ($uapi->execute('uapi', 'Locale', 'set_locale',[
'locale' => 'en',
]));
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.