Shared Image Gallery

Hi all.

I am new to PHP development.

I have a task to create app in pure PHP, no framework. I need to have Home, Login and Registration.
New user should see that page. After login user will have CRUD options for images from gallery. I need to use MySQL database. And need to have administration panel.
Also Homepage should count number of images in database, not to show them. Only logged uses can see the data.

Do you maybe have git repo or some good tutorial for that. I only manage to create something, but on my page redirection doesn’t work after registration and login, first page have images…

Any help is welcome.
Thanks for your help,