PHPnews.io

Overview for 'roballen'

Using MailHog via Docker for testing email

Written by Rob Allen / Original link on Oct. 21, 2020

I recently needed to modify the emails that a client project sends out. It was set up to send via SMTP and so the easiest way to do this for me was to add a local MailHog instance and point the application at it.Manually running via DockerThe quickest and easiest way to do this is via Docker.Manual…


Dorothy Hodgkin

Written by Rob Allen / Original link on Oct. 13, 2020

Dorothy Hodgkin by J.S. Lewinski, 1697.© estate of J.S. Lewinski / National Portrait Gallery, LondonTo celebrate Ada Lovelace Day today, I want to highlight Dorothy Hodgkin, a British chemist who made amazing discoveries with X-ray crystallography of molecules. In particular, she confirmed the stru…




Recursive PHP lint

Written by Rob Allen / Original link on Aug. 13, 2020

There are many scripts that recursively execute php -l on a set of files or directories. This is mine:#!/usr/bin/env bashset -o nounset# Recursively call `php -l` over the specified directories/filesif [ -z "$1" ] ; then printf 'Usage: %s ...\n' "$(basename "$0")" exit 1fiERROR=falseSAVEIFS=…