# Need some PHP related help for creating an Addon for Cockpit 2.0.1

**URL:** <https://discourse.getcockpit.com/t/need-some-php-related-help-for-creating-an-addon-for-cockpit-2-0-1/2423>\
**Category:** Addons\
**Created:** [July 19, 2022, 1:29pm UTC](https://discourse.getcockpit.com/t/need-some-php-related-help-for-creating-an-addon-for-cockpit-2-0-1/2423 "2022-07-19T13:29:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jamo](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/jamo/32/1117_2.png) [@Jamo](https://discourse.getcockpit.com/u/Jamo)\
**Post date:** [July 19, 2022, 1:29pm UTC](https://discourse.getcockpit.com/t/need-some-php-related-help-for-creating-an-addon-for-cockpit-2-0-1/2423/1 "2022-07-19T13:29:37Z")

</div>

Hey there 🙂

First things first: I’m by far not an expert when it comes to PHP. I’m very experienced with JS and NodeJS, but I’ve always tried to avoid PHP as far as possible.

# Introduction

Because of the super exciting release of the [new Cockpit version](https://discourse.getcockpit.com/t/cockpit-the-next-iteration/2395) I finally decided to develop an Addon I’ve been wanting to do for so long …  
Unfortunately I can’t figure out how to create an Addon for Cockpit in the latest version, and I’m looking for someone who’s kind enough to help me out a bit.

In the past there has been a [super simple Template](https://github.com/aaronalbinson/cockpit_customwidget), but this doesn’t seem to be working anymore (which is fair enough considering that the last commit was 4 years ago).

# What I need

- An Addon which can be accessed from the sidebar (somewhere at `kiss-navlist`) which will link to a dashboard
- A custom API endpoint which I can POST, and also GET, some JSON data to/from  
(always the same structure). There will will be just one data model in total.

* * *

I think what I need can be achieved pretty easily. I just can’t fully understand the Addon structure when trying to reverse-engeneer the new Addons which come with the Pro version of Cockpit.

Any help would be super appreciated 🙏´

Thanks in advance and have a nice day.

---

<div class="post-metadata">

**Author:** ![Jamo](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/jamo/32/1117_2.png) [@Jamo](https://discourse.getcockpit.com/u/Jamo)\
**Post date:** [July 19, 2022, 1:41pm UTC](https://discourse.getcockpit.com/t/need-some-php-related-help-for-creating-an-addon-for-cockpit-2-0-1/2423/2 "2022-07-19T13:41:51Z")

</div>

**ℹ Little addition to what I wrote earlier.**

When I copy the [old Addon Template](https://github.com/aaronalbinson/cockpit_customwidget) to my Cockpit Addons, I can see that the Addon get’s loaded when taking a look in the System Settings:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/2X/8/87093de7360e2d556e57017ddd6a9c93d8150dbe.png)

But I cant’ use, or click on, the plugin anywhere. Neither in the sidebar nor in the Settings.

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/2X/6/6bb6f6446081882271fc70629ab7c20fd3b877f7.png)

---

<div class="post-metadata">

**Author:** ![ronaldaug](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/ronaldaug/32/260_2.png) [@ronaldaug](https://discourse.getcockpit.com/u/ronaldaug)\
**Post date:** [July 20, 2022, 7:17am UTC](https://discourse.getcockpit.com/t/need-some-php-related-help-for-creating-an-addon-for-cockpit-2-0-1/2423/3 "2022-07-20T07:17:33Z")

</div>

I’d love to help however a new dashboard requires PHP 8+ 😆 , I still have problems to upgrade my PHP version 😆
