Exakat on FrankenPHP I learnt about Franken PHP by listening to Kevin Dunglas at the AFUP conferences. This is a PHP application server: it loads the code and runs the application from memory. At first sight, it is made for Webapplication. Load the code once, and then run it upon request. But it also has […]
Null safe operator in practice Null-safe operator has been added to PHP 8.1: it is a new object operator that prevents a Fatal error, and its following execution stop, when calling a method or a property on the null value. It has a high appeal, given that it is called ‘safe’ and it reduces the […]
PHP Tops 100 Here are various top 100 of the most popular structures in PHP. All those structures are surveyed in a corpus of more than 3000 open source projects, and storted by frequency on usage. You can use these lists to improve your knowledge of PHP. Top 100 PHP functions Top 100 PHP classes […]
Top 100 most used PHP constants Here is the top 100 PHP constants : it is the list of the most often used PHP native global constants. The classes are ranked in order of project frequency. In a corpus of 3000 OSS projects, the PHP native constants were detected. They may be used directly E_ALL […]
Welcome to the Exakat Community! Unleash the Power of PHP Code Analysis Together! Hello PHP enthusiasts, developers, and elePHPants families! We’re thrilled to extend a warm invitation to join the Exakat Community on our vibrant Discord server. If you’re passionate about PHP, code quality, and continuous improvement, this is the perfect space for you. What […]
Smooth migration from array to object I still need a smooth migration from array to object. There are a good number of arrays that are acting like objects in my source code. I have read (here, here) and written about the advantages of replacing arrays with objects in PHP. They are significant: better performance, less […]
Smooth migration from array to object I still need a smooth migration from array to object. There are a good number of arrays that are acting like objects in my source code. I have read (here, here) and written about the advantages of replacing arrays with objects in PHP. They are significant: better performance, less […]
PHP frameworks A curated list of 89 PHP frameworks. Contributing See CONTRIBUTING, to add or update a listing. PHP Framework list In alphabetical order. A Agavi : Agavi is a powerful, scalable PHP5 application framework that follows the MVC paradigm Aura Advanced tools for advanced applications. B Banshee : the secure PHP framework. B2evolution : […]
array_filter() versus Loop Condition Checks Optimizing your code for performance is important, especially when dealing with large arrays or complex data structures. One common dilemma developers face is whether to use array_filter() to preprocess an array before a loop or to check a condition inside the loop and skipping the unwanted values. In this blog […]
I have been working with a code base that uses a lot of arrays as hashes recently. This is a style that I am confortable with, as I do enjoy PHP arrays : flexible, powerful, versatile. Who don’t like them? Yet, I keep hearing that classes are more memory efficient than arrays. Yet, I still […]