How to install any version of php with all its extensions?

I am trying to install php 8.0 on a nginx server, I’m following internet tutorials, but I don’t get the expected result. some end up installing apache and deleting my nginx server, others install php but without any extension.

I could put all the codes that I have tried but I don’t even know how to organize them.
I can only say that this blog helped me to install php but in version 7.3.
I try to do it with 8.0 and I get no result, if someone helps me to be able to install the php 8.0 version with all its extensions.

Thanks a lot!