As part of my on-going plan to have fewer local dev tools running on my main machine, I have started using devcontainers for my Laravel/PHP development. This blog post goes into detail on why and how to use devcontainers and what benefits they can bring.
I like to keep as many of my dev tools off my local machine as possible. Not only does it make reinstalling my base system easier but it also helps improve security - which is especially useful when software publishers like Microsoft start panicking and pull extensions over security fears (ok - that actually was a false positive and Microsoft over-reacted but IDE/editor extensions do have a lot of control and risk attached to them).
It's the second and final part of how to build a simple API in PHP. To recap, part 1 covered setting up the basics and using the Symfony Routing component while the additional part 1.5 covered using the Symfony dotenv component to store our API's config.
Questions, comments, suggestions? Get in touch!