How to upgrade a composer installed Laravel package via browser online like WordPress?
I've built a Laravel CMS open-source project ( https://github.com/AlexStack/Laravel-CMS ), it can install/upgrade/uninstall via composer.
I've tested the install/upgrade the plugins of the CMS online via a browser by the following steps, so far so good:
- Download package from GitHub
- Uncompress
- Overwrite the PHP/VIEW/ASSET files to the individual Laravel project folder.
- Run SQL to update the database if needed
It will need to overwrite the files into the vendor folder if using the same way to upgrade the main CMS package via browser online. I think there should be another better way to achieve the goal. But, IMO, call exec() or run composer command via PHP on the browser is NOT a good idea as well because
It will take a lot of memory and a long time to get the result. Lots of hosting env not allow to run command due to security reason. I'm worried about something may not right using my own way.
So I'm wondering is there a proper/formal way to allow the admin/web-manager(may not a developer) to click a button at the backup to upgrade the CMS online via a browser like WordPress?
I'm not an expert, thank you for any advice!
Alex
Please or to participate in this conversation.