In this post, we look at how to use CakePHP's Queue Plugin to efficiently manage and execute background tasks. We'll explore the structure, implementation, and benefits of this approach, with a focus on the `src/Job` directory and related components of Willow CMS.
Simplifying Display of Images with PHP Traits and Magic Methods
In this technical deep-dive, we explore how combining PHP traits and magic methods can dramatically simplify image URL generation in a CMS. The article describes the implementation of ImageUrlTrait, a clever solution that replaces verbose, error-prone code with a clean, maintainable approach. By leveraging PHP's trait mechanism for code reuse and magic methods for dynamic property handling, the solution allows developers to easily access different image sizes through intuitive properties like $image->smallImageUrl or $image->largeImageUrl. The transformation from complex, nested HTML helper calls to a streamlined element-based approach demonstrates significant improvements in code readability and maintainability.
Getting Started with Willow CMS: Posts and Pages
Willow CMS has officially launched! I've been building Willow CMS for a few months now and it's time to put version 1 into use. Willow offers offers dual editing options with both Trumbowyg Rich Text and Markdown editors, image management capabilities, AI features for SEO optimisation and automatic translation support for 25 languages. In this post I share a video showcasing the Willows interface for publishing pages and blog posts.
About
Welcome to willowcms.app. This site uses Willow - a content management system I'm building in the open. Here you'll find development updates, feature highlights, and guides on using Willow for your own sites.