DEV Community

pankrok
pankrok

Posted on

OneBB Devlog

What to do so that the user can conveniently manage add-ons in the script? The best way is to create a controller that will download, unpack and install the selected add-on for him.
I based my solution on two independent scripts, "Master" and "Client". For faster creation of the Master script, I used EasyAdminBundle. All I had to do was create an admin panel and a few Entitis such as "Plugin" and "PluginVersion". Next, all I had to do was use ApiPlatform to expose the corresponding API to the Client script.

The client can download a list of plugins along with information about the latest version. The version is assigned a file URL on the master server. Now all you need to do is download it thanks to the HTTP Client built in Symfony, unzip it and move it to a folder of your choice.

Managing add-ons in OneBB Forum has never been as easy as it is now :)

onebb.org

Top comments (0)