DB tools Some useful database commands have been added to Setup plugin 3.8.0+: bin/cake db init This will create the (default) database, if it does not yet exist. Setting up a fresh project or local version of it, the dev…
Category: WebDevelopment
IdeHelper plugin on steroids
Pretty much 5 years ago I blogged about leveraging your IDE. In this small update here I want to showcase a very handy new feature: Live annotation updates in your code base while you bake, develop and customize. Note: The…
eInvoicing in PHP
The eInvoice – or "E-Rechnung" in German terminology – is a thing. I didn’t know until recently, when I had to start implementing a process here for a PHP backend. Context The eInvoice should already be used by businesses as…
One time login links in CakePHP
Sometimes also called magic links, these login links provide a way for a user to log in without the need of password entering. Basic workflow Instead of a "password reset" button to send you a mail to confirm your password…
TinyAuth and CakePHP authorization plugin
Part 2 of 2. We continue on the auth topic of the previous post. Let’s talk ACL In this second post, we’ll dive into role-based access and how to achieve it easily and quickly. We use the authentication plugin by…
TinyAuth and CakePHP authentication plugin
Over 13 years ago I wrote about my TinyAuth plugin as enhancement to the core Auth component, at the time the state of the art auth tool you needed for a quick auth setup in Cake apps. Lets revisit that…
CakePHP Static Analyzer updates
You might remember my blog post from beginning of this year. In this article I want to give a quick feedback on what happened so far. CakeDC PHPStan extension The authors of CakeDC/cakephp-phpstan did a great job over the last…
CakePHP Tips 2024 Autumn Edition
ORM type map details With the help of the Setup plugin you can get a lot of useful info for your current app setup. One very new useful overview is the ORM type map. It shows the different types and…
Simple local dev env for (Cake)PHP apps
The last years I was using devilbox a lot. It has quite a simple setup for CakePHP apps, that are not using too many different external services. Over the years that got less maintained. I started to also look into…
CakePHP and static analyzers
In this post, I discuss the usefulness of clean coding and static analyzers used to introspect it. I will also outline a few neat tools and tricks to get there faster. Static Analyzers Statically analyzing your code can be super…