Working with decimals in PHP apps

3

DB Basics Let’s talk about some of the basics first. float vs decimal In general, floating-point values are usually stored as float in the database. In earlier versions of databases they also often had precision/scale (e.g. float(5,2) for values like…

CakePHP 5 upgrade guide

0

CakePHP 5 has just been released as 5.0.0. As it stabilizes, here already some tips and helpful tools to quickly update your app or plugin code. This aims to be a living doc on the process, so I will update…

Fun

Creating a logo with ChatGPT

0

Yes, another one talking about it 🙂 This is more of a fun anecdote actually, though. Preface Many of us used ChatGPT already for weeks to get creative answers for different questions or tasks in text form. Easy. Some also…

Font icons in CakePHP apps

2

Everyone uses font icons these days. The most common, most powerful library seems to be FontAwesome. But also BootstrapIcons is used quite a bit. Not so common yet are Material and Feather as icon libraries. Some of those also use…

Improved CakePHP ErrorHandler

0

Some might already know the improved error handler parts of the Tools plugin from CakePHP 2 or 3. Here I rewrite and publish those now for the 2020 CakePHP 4 scope. Motivation The main goal of the error.log is to…