tonygustafsson / lostseas-php

This is a totally free pirate-influenced, web based game (no signup needed). You will travel from town to town, and encounter many ships on the Caribbean Sea. Accumulate riches, ships and new crew members. Try to level up and be promoted!
7 stars 0 forks source link

Swap backend to something modern #13

Open tonygustafsson opened 4 years ago

tonygustafsson commented 4 years ago

Today we are using PHP and CodeIgniter 3 framework. I see some problem with this.

Some steps have been taken already to using the backend as an API but much more is needed.

tonygustafsson commented 4 years ago

I did some research today. I felt like it's going to take too much of my time to swap the backend to NodeJS so I figured I should change to a more modern PHP framework in the mean time. Smaller increases works better for me timewise.

I checked what frameworks were recommended nowdays and I think Laravel is the recommended one. I like small frameworks though that makes the bare minimum. And after trying Laravel out I think they require Composer to work. Would have been ok if I were not using Docker for my local development setup. I just want a couple of files and go with it.

I then tried Codeigniter 4... I think it would work just fine. It has a lot of improvements over version 3. I need to refactor alot of stuff though. Mainly the models.