r/PHP • • Dec 06 '23

Discussion Looking for “practice” projects

I’ve been doing php basically since it came out but have taken multiple breaks in the middle. I’m looking to practice more but am bad at coming up with ideas. I’m also not great at front end work so I’d need something with a simple UI. I also am not educated on any frameworks because I made my own.

Recently I’ve made a super simple CRUD that’s intended for access from a backend and not from something like a a AJAX. I’ve also made an ok router/dispatcher.

Anyway, I’d appreciate any suggestions or ideas.

11 Upvotes

14 comments sorted by

4

u/hoof_art_did Dec 06 '23

Create a social media site, such as a Facebook clone. It will expose you to so much that you will need to know for future projects.

4

u/hagenbuch Dec 06 '23 edited Dec 06 '23

Do you have any task in your daily or weekly life that could somehow be automated or made easier by a webservice? Start with that, no matter how primitive it may seem at first. More ideas will come!

30 years ago as a student I had been in a group of 30-40 cooking for each other, so every workday at lunchtime about 10-20 of us met, two had to cook.

So, a booking calendar might have looked like this:

  • If you want to cook at a certain day, announce in a list what you want to cook and at what day.
  • Everyone has to be registered to use that system.
  • Others in the group see that there will be something to eat at that day and register (checkbox), ideally early.
  • Then the cook knows a day before cooking how much stuff they need to buy for how many eaters.
  • Then at the day it self, everyone who really ate there checks a (second) checkbox of that day.
  • Then after having cooked, the cook knows how much he or she spent and types that in for that day, too.
  • The software divides the cost by the eaters and adds to the individual balances.
  • Individual balances of individuals raise by spending money for cooking and lower by eating, so ideally, on the long run if everyone cooks and eats approximately the same, every balance might come out as zero. But in reality:
  • Every participant of this should pay some initial fixed amount so there is always money in "the bank", so those who "worked too much" can take money from there.

Don't overlook OWASP - learn about basic web security first, it may save you a lot of work later.

3

u/[deleted] Dec 06 '23

I'm working on automating a VPS right now, it can really learn you a lot. Setting up NGINX, bind9, git and everything, creating deployment scripts in php, trying to make the code clean and "future proof", stuff like that

2

u/[deleted] Dec 06 '23

Pretty good. I'd add something cool as scheduled deployments (make a small website that allows you to set deploy time remotely) to it.

2

u/[deleted] Dec 06 '23

Yes good addition, thanks!

2

u/mdizak Dec 06 '23

Shouldn't be using PHP for deployment scripts. Use Ansible instead, that's what it's designed for.

1

u/photocurio Dec 10 '23

Fascinating. Can you share your repo?

1

u/[deleted] Dec 11 '23

It's on private now, as I'm still working on 0.1. Shoot me a message and I'll let you know when i make it public!

3

u/mhphilip Dec 06 '23

A Twitter clone is nice as a pet project. And when you’re all done check bootcamp.laravel.com and look at how much they abstracted away

2

u/AffekeNommu Dec 06 '23

Make yourself a shopping list. Frontend can be datatables with bootstrap modals and backend PHP CRUD with MySQL storage.

2

u/Crell Dec 06 '23

A todo app is one of the standard "hello world" applications that people go through. Also a Twitter clone. Things like that.

Pick an app you use that you think is simple, then try to replicate it. You'll learn why it's not simple. :-)

2

u/kammysmb Dec 07 '23

An underrated one is a flight or hotel booking site, I personally learned a lot about all the time-zone message, access control (roles etc.) and a bunch of other stuff through projects like these

2

u/mdizak Dec 06 '23

https://apexpl.io/training/

Develop an eCommerce solution, Facebook / Twitter clone, dating site, restaurant management solusion, or something along those lines. Slap a commercial tag on it, set a price, and hopefully in the future earn some passive income out of it while you're at it.