Skip to main content

PHPUnit

2023


How I upgraded eight PHP katas

·20 mins
I recently upgrade eight PHP Katas from a minimum PHP 7.3 to a minimum of PHP 8.0. I used Rector, Easy Coding Standard (ECS) and PhpStan to help me. This is how I approached the upgrade and used these tools.

2021


Standard setup for PHP projects 2021

·18 mins
The focus of this blog is to help set up PHP Projects in PhpStorm. I have also included snippets from my side-projects. I hope the information will be useful for other PHP projects. This is a follow-up to my blog Standard Setup for PHP projects from 2020.

2020


Set up PhpStorm to use PHP with PHPUnit and xDebug in Docker

·6 mins
I have recently configured my windows 10 laptop with an additional SSD, so I could experiment with Linux. I have already installed Pop!_OS Git, PhpStorm and Docker. I haven’t installed PHP or Composer locally. Next I want to learn how to use this new environment. This is what I have found out so far.

Why I enjoy coding Kata's

·2 mins
One of the things that have helped me to learn software development using PHP is coding Katas. I especially enjoyed the Katas by Emily Bache on Github. They offer a safe sandbox environment to play with code and tools. They have good, or should that be not so good, starting code to self-teach techniques for refactoring, testing and object orientated code. In fact, I enjoyed them so much, I have contributed to them!

Standard Setup for PHP projects

·15 mins
Note: This is my standard setup from 2020, a newer version from 2021 is now available Standard setup for PHP projects 2021. The focus of this post if to setup PHP and PhpStorm in a consistant way for each project, with coding standards, static analysis and tests.