Skip to content

Steve's Blog

New adventures in making mistakes

Category: backend

bookmark_borderManually updating post meta data after a post has been published

Posted on March 8, 2022 by Steve

Recently, while creating a Wordpress plugin for a client website, I ran into a problem with some Wordpress action hooks that that had me stymied for a couple of hours. Here’s my solution.

Posted in backend

bookmark_borderInstalling XDebug for XAMPP on Mac (Intel or M1) with a little help from Homebrew

Posted on February 11, 2022May 2, 2022 by Steve

How to install XDebug for XAMPP on a Mac (Intel or M1), without HomeBrew. While it’s not as easy as it is on WIndows (a simple download), it’s still pretty straightforward. Just follow these steps.

Posted in backend, note

bookmark_borderSetting up XDebug 3 on a Docker Container with Visual Studio Code

Posted on February 10, 2022April 27, 2022 by Steve

Using and configuring XDebug since the release of version 3 has been a breeze. Similarly, getting XDebug to work when using a Docker Container as a dev environment is equally easy.

Posted in backend, note

bookmark_borderHow to use earlier version of PHP with Composer

Posted on February 4, 2022February 5, 2022 by Steve

If you need to run an older version of PHP for Composer when installing an older project with outdated dependencies, here’s a quick fix that does not require mucking with environment variables.

Posted in backend

bookmark_borderPsalm: Static Type Analysis for PHP

Posted on May 18, 2021September 9, 2021 by Steve

Yearning for a Typescript-like static type analysis tool for PHP? Vimeo’s engineers, in an attempt to maintain and grow their own PHP codebase, have developed one… and open sourced it. Checkout Psalm.

Posted in backend

bookmark_borderCreating Immutable Objects in PHP

Posted on April 3, 2021September 9, 2021 by Steve

What’s an immutable object? Depends who you talk to. By some definitions, an immutable object is one that cannot have the values of its predefined members changed after instantiation. But what if you can add new properties? Is it still immutable?

Posted in backend

Recent Posts

  • A Tale of Failure on Multiple Levels
  • Using ssh keys with Github and Bitbucket with multiple accounts
  • Scheduling tasks in Laravel
  • Manually updating post meta data after a post has been published
  • Marathon Laravel Update from 5.6 to 9.0
keyboard_arrow_up
Content copyright © by Steve George