use HTTPS in all the application (SSL CERTIFICATE)

How can I implement ssl to use HTTPS for all requests?

I try to look for an article that can explain how to do it with a Yii2 app but I couldn’t get anything.

Yii has nothing to do with that :)

So, Apache?