How do upgrade yii2.0.4 to the latest version

I have developed a web portal using yii 2.0.4 and I would like upgrade to yii2 latest stable version. Can anyone help how to do? Thanks in advance

Hi,

What exactly do you mean with "help how to"?

There is no “just do this and that and everything works” solution. ;)

Are you familar with the usage of composer? :)

If yes => Do you have a test-environment that reflects your productive environment? (docker?)

If yes => Just update with coposer, test & fix. :)

If everthing works => Move on to prod.

Regards