InApp Update function

I want to make self hosted application using Yii2. and I want make “update” function (this function will download the archive updates and then extracting) like wordpress.
How to make InApp update on Yii2 ?

Your case seems to be very big to answers in a forum. But I would starting looking in this steps:

  1. Upload the file;
  2. Unzip it;
  3. Process the files (here comes your code);
  4. Finish.