This is some code I wrote when I was in university, a toddling programmer. Moved it to github to save some old memories. Might be useful to you, but let me warn you it's terrible code.
haisum/my-university-code
Code that I wrote in university, you can use it if it's helpful to you. But remember it's terrible I wrote it when I was learning :)
PHP