Basically all the deps we used in this exercise are not updated and do not work with PHP 8.1. So I had to search for a new routing library library. They are all not very simple, with league/route being the best one I could find. It is still more complicated, requiring you to marshal the request objects and output the responses, so you need to learn about PSR7 as well now and pull in an additional 2 libraries.
symfony/string seemed like a good alternative for stringy but it doesn't support swapping case so I changed that to snake case.
Is the problem file understandable or too complicated?
Hey @mikeymike would appreciate a review here.
Basically all the deps we used in this exercise are not updated and do not work with PHP 8.1. So I had to search for a new routing library library. They are all not very simple, with
league/route
being the best one I could find. It is still more complicated, requiring you to marshal the request objects and output the responses, so you need to learn about PSR7 as well now and pull in an additional 2 libraries.symfony/string
seemed like a good alternative for stringy but it doesn't support swapping case so I changed that to snake case.Is the problem file understandable or too complicated?