1. Go to this page and download the library: Download akerbel/whmcs-easy-addons 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/ */
akerbel / whmcs-easy-addons example snippets
function EasyAddonsSkeleton_output($vars) {
global $module;
namespace EasyAddonsSkeleton;
global $module;
ntroller($vars);
$EasyAddonsSkeleton->run();
namespace EasyAddonsSkeleton;
use whmcsEasyAddons;
class EasyAddonsSkeletonController extends whmcsEasyAddons\PageController {
// This tab will be chosen by dafault
public $action = 'firsttab';
// This is array of your tabs and their names.
public $menu = array(
'First Tab' => 'firsttab',
'Second Tab' => 'secondtab',
);
public function firsttabAction(){
// Your code for "First tab"
}
public function secondtabAction(){
// Your code for "Second tab"
}
}