Skip to main content

PHP

2023


How to run cron jobs on Windows

·8 mins
Laragon 6 added the ability to run cron jobs. Here is an example on how to run them on Windows using Cronical.

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.

How to update the PHP version in Laragon

·9 mins
Updating the version of PHP is probably the most common change I make in Laragon. The ability to switch from PHP 7.4 to PHP 8.2 in a few clicks is Laragon’s magic

2022


My developer content recommendations

·4 mins
This is my curated and opinionated list on how I try to keep up to date with what’s going on in software development and in particular PHP.

2021


How to Set up VS Code to use PHP with Xdebug 3 on Windows

·11 mins
VS Code with PHP and Xdebug 3 Xdebug 3 is an extremely powerful debugging tool for PHP. Although print_r(), var_dump() and dd() have their uses, Xdebug gives more powerful debugging options: step debugging allows the ability to view execution of each line of code, including the ability to view all variables and their values. Code coverage is useful to identify untested code, or code which is never executed (dead code).

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!

Setup a new SilverStripe 4 Project

·7 mins
I have recently started a new job as a software developer, the tech stack includes a content management system (CMS) called Silverstripe. I therefore wanted to learn the Silverstripe CMS. The initial process of creating a project should be straight forward, there are supposed to be beginner lessons. The first three lessons on how to set up a silverstripe project are confusing, as there is intermixed talk about upgrading from Silverstripe v3.