Plugin Development


Migrat­ing a web­site with plu­g­ins from Craft 2 to Craft 3

In this hangout, we'll start with a walk through upgrading a simple Craft 2 site to Craft 3. We'll explore how the upgrade process works with plugins that exist in and don't exist yet on Craft 3 and deepen our understanding of how Craft behaves during the upgrade process so we can plan successful migrations. For plugin developers, we'll continue the discussion on how to plan for and test migrations during the upgrade process, including the new Install migration and how to make sure your plugins are ready for PostgreSQL. Read More »

Ben Parizek

Code Review: Extend­ing Twig with a new Tag and the MN Twig Per­ver­sion Plugin

Do you write clean, optimized code and aspire to best practices? Whether you're actively developing Craft plugins or just getting started, in this Code Review we'll demo real Craft plugin code that's out in the wild and discuss what we can learn from it and how to make it better. This week we'll look at MN Twig Perversion, one of the daring plugins that has ventured into extending Twig to create a new Twig Tag. Twig Tags are a complex feature that require we get a better understanding of Twig's internals as we extend the template engine with Token Parser and Node classes. Read More »

Barrel Strength Design

Trou­bleshoot­ing and debug­ging errors in PHP

Dump, die, throw, log. In this hangout, we'll take a look at the various tools we have to help identify and troubleshoot errors in PHP as we design and develop websites and plugins with Craft CMS. We take a look at various simple, dump-driven development techniques and then compare those to debugging in PhpStorm using X-debug. Brad Bell gives a demo on getting X-debug setup in PhpStorm along with several tips to improve your debugging workflow. Read More »

Barrel Strength Design

Martini Icon
Next Page

Level up in Craft CMS with practical examples, snippets, and patterns.
Craft The Planet emails are sent out several times a week.