how can i create a password and username in php?

i have this website and i want to make it more secured by adding a login page where visitor must login to view the pages because they are private.

can you teach me to do that