PHPackages                             akerbel/whmcs-easy-addons - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. akerbel/whmcs-easy-addons

ActiveLibrary[Admin Panels](/categories/admin)

akerbel/whmcs-easy-addons
=========================

Whmcs Addon Admin Page Controller

v1.2.0(9y ago)121294PHP

Since Apr 14Pushed 9y ago2 watchersCompare

[ Source](https://github.com/akerbel/whmcs-easy-addons)[ Packagist](https://packagist.org/packages/akerbel/whmcs-easy-addons)[ Docs](https://github.com/akerbel/whmcs-easy-addons)[ RSS](/packages/akerbel-whmcs-easy-addons/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)DependenciesVersions (6)Used By (0)

WHMCS Easy Addons
=================

[](#whmcs-easy-addons)

WHMCS Easy Addons is a package for fast creating of addon admin pages.

Homepage:

How to install:
===============

[](#how-to-install)

The recommended way to install WHMCS Easy Addons is through Composer.

```
# Install Composer
curl -sS https://getcomposer.org/installer | php
```

Next, run the Composer command to install the latest stable version of WHMCS Easy Addons:

```
php composer.phar require akerbel/whmcs-easy-addons
```

How to use:
===========

[](#how-to-use)

I. Admin tabs.

- Install Composer

```
curl -sS https://getcomposer.org/installer | php
```

- Create composer.json file inside your addon:

```
{
    "name": "EasyAddonsSkeleton",
    "version": "1.0.0",
    "description": "An example addon for WHMCS Easy Addons",
    "autoload": {
        "psr-4": {
            "EasyAddonsSkeleton\\": "src/"
        }
    },
    "require": {
        "akerbel/whmcs-easy-addons": "1.*"
    }
}
```

- Your "\_output" function should look like this:

```
function EasyAddonsSkeleton_output($vars) {
	global $module;
    include_once(ROOTDIR."/modules/addons/".$module.'/src/output.php');
}
```

- Create 'src' folder.
- Create output.php file in 'src' folder.

output.php:

```
namespace EasyAddonsSkeleton;
global $module;
include_once(ROOTDIR."/modules/addons/".$module.'/vendor/autoload.php');

$EasyAddonsSkeleton = new EasyAddonsSkeletonController($vars);
$EasyAddonsSkeleton->run();
```

- Create EasyAddonsSkeletonController.php in 'src' folder.

EasyAddonsSkeletonController.php:

```
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"

	}
}
```

- Create folder 'templates'.
- Create .tpl file for each your tab in 'templates' folder with names like 'firsttab.tpl' and 'secondtab.tpl'.
- You can assing your php variables in each 'Action' method:

```
$this->view->assign('smarty_variable', $your_php_variable);
```

==================== II. Fast item lists.

- Example code:

```
    $list = new whmcsEasyAddons\ItemList(

        // SQL params array. Read more in ItemList.php
        array(
            'SELECT' => '*',
            'FROM' => 'tblmodulelog',
        ),

        // Filters array. Read more in ItemList.php . Optional.
        array(
            array(
                'name' => 'module', 'value' => $_GET['filter']['module'], 'description' => 'module'
            ),
            array(
                'name' => 'action', 'value' => $_GET['filter']['action'], 'description' => 'action'
            ),
            array(
                'name' => 'request', 'value' => $_GET['filter']['request'], 'description' => 'request', 'type' => 'LIKE'
            ),
            array(
                'name' => 'response', 'value' => $_GET['filter']['response'], 'description' => 'response', 'type' => 'LIKE'
            ),
        ),

        // Paginators type. Read more in a changelog for v1.2 . Optional.
        'dafault'
    );
    $this->view->assign('result', $list->result);
    $this->view->assign('paginator', $list->paginator);
    $this->view->assign('tablehead', $list->tablehead);
    $this->view->assign('filter', $list->filter);
```

- Now you can use this variables in your .tpl file:

1. $filter - show a filter form.
2. $paginator - show a page navigation.
3. $tablehead - show a tablehead with sort buttons.
4. $result - show an array of items.

New in v1.1:
============

[](#new-in-v11)

1. Now JOIN parameters can be arrays. It means, now you can use few similar JOINs in your query.
2. ORDER and SORT parameters was added . If you use JOINs in your query, you must define you ORDER parameter, because 'ORDER BY' statement will use default 'id' and it will not work with JOINs.

Fixes in v1.1:
==============

[](#fixes-in-v11)

1. The bug with namespaces of Exception class was fixed.
2. Spacebars was added between pages in a paginator.

New in v1.2:
============

[](#new-in-v12)

1. Types of the paginator added. Enabled 'default' and 'short'. 'default' type is an old paginator with numbers. 'short' type is a new fast paginator. Use it if you work with a very big table. It includes only two buttons: previous page and next page. Stylized as a default WHMCS module logs` paginator.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~40 days

Total

5

Last Release

3515d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8d81fc1db0dc638c87a1f8ba05e7f5cfd4665ec352ad5d9202abea50f846354f?d=identicon)[akerbel](/maintainers/akerbel)

---

Top Contributors

[![akerbel](https://avatars.githubusercontent.com/u/12121444?v=4)](https://github.com/akerbel "akerbel (1 commits)")

---

Tags

Whmcs

### Embed Badge

![Health badge](/badges/akerbel-whmcs-easy-addons/health.svg)

```
[![Health](https://phpackages.com/badges/akerbel-whmcs-easy-addons/health.svg)](https://phpackages.com/packages/akerbel-whmcs-easy-addons)
```

###  Alternatives

[jeroennoten/laravel-adminlte

Easy AdminLTE integration with Laravel

4.0k4.8M43](/packages/jeroennoten-laravel-adminlte)[dmstr/yii2-adminlte-asset

AdminLTE backend theme asset bundle for Yii 2.0 Framework

1.1k1.8M67](/packages/dmstr-yii2-adminlte-asset)[dwij/laraadmin

LaraAdmin is a Open source Laravel Admin Panel / CMS which can be used as Admin Backend, Data Management Tool or CRM boilerplate for Laravel with features like CRUD Generation, Module Manager, Media, Menus, Backups and much more

1.6k68.7k](/packages/dwij-laraadmin)[filament/spatie-laravel-media-library-plugin

Filament support for `spatie/laravel-medialibrary`.

1764.8M125](/packages/filament-spatie-laravel-media-library-plugin)[bezhansalleh/filament-exceptions

A Simple &amp; Beautiful Pluggable Exception Viewer for FilamentPHP's Admin Panel

193195.9k13](/packages/bezhansalleh-filament-exceptions)[filament/infolists

Easily add beautiful read-only infolists to any Livewire component.

1220.8M36](/packages/filament-infolists)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
