PHP

How to Learn PHP Unit Testing With Katas

All PHP code gets tested. Most of it is tested by the developer when they check to make sure the webpage looks right in their browser; some when you run an API response tool, like Postman. Some of it is tested when that same developer writes automated tests and runs them against it---this is our focus. Sometimes code is first tested when the unfortunate client or user feels like using the feature and tests the developer's work. Hopefully, they're not disappointed.

Continue reading

Standard
PHP

PHP Web Scraping: What to know before you start with Symfony Panther, Goutte, and more

First and foremost, scraping the web (in PHP) is bad, mkay? PHP web scraping isn't worse than doing it with other languages, it's just that web scraping in general is most likely to be looked by with disdain by content-producers. And it'll make your code more brittle than it should be, and is general going to make an application more complex to build.

Continue reading

Standard