Blog

  • Creating a Custom PHPUnit Command for Docksal

    6 May 2018

    This week I’ve started writing some custom commands for my Drupal projects that use Docksal, including one to easily run PHPUnit tests in Drupal 8. This is the process of how I created this command.

  • Back to the future with Git’s diff and apply commands

    23 April 2018

    This is one of those “there’s probably already a better way to do this” situations, but it worked.

    I was having some issues this past weekend where, despite everything working fine locally, a server was showing a “500 Internal Server” after I pushed some changes to a site. In order to bring the site back online, I needed to revert the site files back to the previous version, but as part of a new commit.

  • How to put your PHP application in a subdirectory of another site with Nginx

    12 March 2018

    In January, Chris Fidao posted a video to Servers for Hackers showing how to put different PHP applications in different subdirectories and have them serving on different paths with Nginx. I’ve had to do this a few times previously, and it’s great to have this video as a reference.

  • How to split a new Drupal contrib project from within another repository

    10 March 2018

    Yay! You’ve written a new Drupal module, theme or installation profile as part of your site, and now you’ve decided to open source it and upload it to Drupal.org as a new contrib project. But how do you split it from the main site repository into it’s own?

    Well, there are a couple of options.

  • Drupal 8.5.0 Released

    9 March 2018

    This week the latest minor version of Drupal 8, 8.5.0, was released.

    This new version makes Media module available for all, improves migrations significantly, stabilizes the Content Moderation and Settings Tray modules, serves dynamic pages faster with BigPipe enabled by default, and introduces a new experimental entity layout user interface. The release includes several very important fixes for workflows of content translations and supports running on PHP 7.2.

  • Tweets from DrupalCamp London

    4 March 2018

    In the end, I wasn’t able to make it to DrupalCamp London because of the heavy snow that’s hit the UK over the last few days. I did though keep a close eye on Twitter and still had good conversations with some of the attendees, so it did feel that in some ways I was still part of the conference.

    Thanks to @ChandeepKhosa, @OrangePunchUK, @hussainweb, @littlepixiez, @cferthorney and others for taking the time to tweet whilst enjoying the event.

    Here are some of my favourites that I saw, and no snow next year, please!

  • Yay, the Mediacurrent Contrib Half Hour is Back!

    2 March 2018

    Back in November, Mediacurrent introduced the contrib half hour - a weekly online meeting to provide guidance and assistance on contributing to Drupal and Drupal projects. A range of topics were covered in the first few sessions, including finding and testing bug fixes, Composer, Drush, and how to re-roll patches.

  • Building the new PHPSW Website

    28 February 2018

    Earlier this week we had another hack night, working on the new PHPSW user group website.

  • Queuing Private Messages in Drupal 8

    27 February 2018

    My current project at Microserve is a Drupal 8 website that uses the Private Message module for users to send messages to each other.

    In some cases though, the threads could contain hundreds of recipients so I decided that it would be good to queue the message requests so that they can be processed as part of a background process for better performance. The Private Message module does not include this, so I've written and released a separate Private Message Queue module.

  • Looking forward to DrupalCamp London

    27 February 2018

    This weekend is DrupalCamp London 2018. I’ll be there along with a number of my Microserve colleagues.