Inline Twig templates

Inline Twig template is a quick and easy way to use Twig syntax in render arrays. I usually use this render element type to add JS scripts to the <body> section of Drupal pages, but you can also use it in controller responses, custom blocks, and so on.

Drupal 8/9 and Behat tests

Adding automated tests to small or create-and-forget projects probably doesn't make sense. You will spend additional time writing those tests, and this will only increase the project's cost. And you will get almost nothing in return. But, if you are working on a project that will be maintained in the future and new features will be added on a regular basis, then you most certainly need to add automated tests.

dix (Database Import eXport)

dix is a simple console application that will make your life easier if you are working with MySQL databases. Let's say that you are working with some PHP framework or CMS and that you want to test a new module/plugin/add-on, or maybe you just want to upgrade to the latest version. The very first thing you should do is make a backup of your database. Doing this will save you a lot of headaches if something goes wrong.