PHP


5 June 2022

Interfaces over Unions

PHPJSJAVASCRIPTTYPESCRIPT

Unions have started coming into PHP with the release of version 8. We have been using them a bit in typescript and have found that opting for an interface is much better. Interfaces clean up the flow of your code and make things much more readable by eliminating the need for many if statements.

Read more →
18 April 2018

Vs Code Colonizer Plugin

VSCODEPHP

Putting a semicolon at the end of a line is something I do all day as a web developer. So that's why in this post I wanted to give a shout out to the plug-in, I hands down use the most since I made the jump to vs code in 2017.

Read more →
10 April 2018

Api testing with codeception and Yii2 http client

CODECEPTIONTESTINGYII2PHP

Testing API integrations has been one of those things I could not find an elegant solution for. This was before I found yii2's http client. With the use of their "Transports" we can fake API calls for testing without actually hitting the API. By faking responses we can test how our applications handles different responses.

Read more →