Using Exakat with Docker Exakat is available on docker, as community version. It is available at hub.docker.com. Here is how to use it. Installation Docker is needed to run this tutorial. To install exakat, start docker, then run the following command in the terminal : docker pull exakat/exakat:latest With a graphical interface, such as Docker […]
The 100 PHP functions that you have to know There is a newer version of this top, in 2024. Here is the top 100 PHP functions : it is the list of the most often used PHP native functions. The functions are named, and ranked from 1 to 100. The other 4500 functions are not […]
Exakat 2.4.6 Review Exakat 2.4.6 finishes the movement to Gremlin 3.6. It now prepares PHP 8.2, with the upcoming feature freeze by the end of July. Preparation for Gremlin 3.6.0 With this version, Exakat has finished the move to Gremlin server 3.6.0. All drivers are now ready, and many rules have been ported to the […]
Bracketless instructions PHP control structures, such as foreach, for, while, if/then/else,… are followed by one or several instructions. When there are several instructions, a block needs to be set up, with curly braces. When the following instruction is unique, it is possible to skip the brackets, and only use the instruction. This feature has always […]
5 ways to give a name to your booleans Booleans are either true or false. And sometimes, they mean more than just that : they are options in a method call. There, it is difficult to differentiate them, without a good dose of documentation and self-trust. Thus, you need 5 ways to give a name […]
Some Aging Parameters Parameters are part of the signature of methods and functions. They are one of the ways to inject data into a piece of code, for it to be processed. PHP has a lot of options and they have been available since ever. They are easy to find in recent and legacy code. […]
Weekly report for the week from 27-06-2022 to 10-07-2022 These are the focus rules for this week : Empty Traits : List of all empty trait defined in the code. Method Collision Traits : Two or more traits are included in the same class, and they have methods collisions. Useless Method Alias : It is […]
PDFF : PHP Document File Format details In the first episode, we have presented the origin of the PDFF: how it emerges to be a convenient format to describe PHP component, with a good level of details, some versioning and a dual-readability human/machine. In this second episode, we’ll introduce the format and the content of […]
New PHP errors messages in PHP 8.2 The upcoming PHP 8.2 is bringing some new errors messages, either from new features, or from extra checks on the source code. Let’s review their numbers, and some of the extra checking that will help us. Evolution of error message counts With distinct 751 error messages, PHP 8.2 […]
Exakat 2.4.4 Review Exakat 2.4.4 brings a host of improvements, at the engine level, and with new analysis. Preparation for Gremlin 3.6.0 With this version, Exakat has started the move to Gremlin server 3.6.0. This is an important move, as Gremlin tighten the bolts of the language. In the long run, it will help choose […]
Final, abstract and other cousins Counting classes in an application How many classes are there in a PHP application? A simple count based on the class keyword gives a quick answer. Modern PHP application range from a dozen of units to a dozen of thousands. Yet, each class keyword doesn’t produce a concrete class. Inheritance […]