David Loor

How to Create and Use Drupal 8+ Services: A Detailed Guide with Practical Code

drupal services

Drupal, the open-source content management system, has come a long way since its inception. With the release of Drupal 8, we saw a massive shift in the underlying architecture: the adoption of a more object-oriented programming approach using Symfony components. One notable component that was introduced in Drupal 8 is the service container, which has […]

How to Efficiently Render HTML Markup in WordPress: A Practical Guide for Developers

wordpress templates

Discover the power of template parts in WordPress and learn how to render HTML markup efficiently with our step-by-step tutorial. This comprehensive guide explores the benefits of using template parts, including modular code structure, reusability, and improved readability. Whether you’re a seasoned developer or just getting started with WordPress, this tutorial will provide you with practical insights and examples to enhance your development workflow and create more maintainable and customizable themes and plugins.

Drupal 10, a quick overview

Drupal 10

Drupal 10 is the latest version of the popular open-source content management system (CMS) Drupal, released on December 14th, 2022. It marks the culmination of over two years of development and brings with it numerous new features and improvements. One of the key features of Drupal 10 is its support for modern web development practices. […]

How to step debug PHP code with Xdebug and PhpStorm on a DDEV setup

a woman typing on keyboard

What is debugging? Per wikipedia: “In computer programming and software development, debugging is the process of finding and resolving bugs (defects or problems that prevent correct operation) within computer programs, software, or systems.” Per Internet: “Debugging is like being the detective in a crime movie where you are also the murderer.” – Filipe Fortes What […]

How to switch between PHP versions on Mac OS X using homebrew

Coding on a computer screen

I use docker for all the projects, but the other day I needed to run a composer command in my host machine to install a Drupal distribution which is not compatible with PHP 8.0, so I needed to switch the PHP version. And the steps to do so are: Install homebrew: https://docs.brew.sh/Installation Install the Brew […]