Magento 2 Composer / setup:upgrade buttons
For Magento 2:
If you could add a box where a user can add / remove / update composer modules in the admin panel.
There should be some validation on the text box to check if the composer module requires authentication or not.
If there is authentication required or a 3rd party server needs to be used, there should be a tickbox which enables additional input fields for credentials.
Add Button -> Add composer require -> Run Composer Require -> Run Composer Update.
Delete Button -> Add composer remove XXX -> Run Composer Update.
Update Button -> Run Composer Update.
Upgrade Magento Button -> Runs bin/magento setup:upgrade which is required to install any new extensions onto Magento 2.
Deploy Static Content Button -> Redeploys all locale static content for Magento 2 store.
If any errors pop-up, composer will automatically rollback to it's previous version and a message pops up stating that the request to update/add/delete has failed.
If there is a success, then an output of composer is displayed to the user.