Static Analysis - Replacing Psalm with PHPStan
What is Static Analysis Static analysis (static code analysis or source code analysis) applies a set of coding rules to debug source code before a program is run. Applied in the early phase of code de…
Florin Bidirean · Nov 22, 2024 Read more → PHP DevelopmentAlmaLinux 9 in WSL2 : install PHP, Apache, MariaDB, Composer, PhpMyadmin
In this article we will demonstrate how we install AlmaLinux 9 using Windows Subsystem for Linux (WSL2). First, you need to check if your machine is ready for using WSL2.
Alex Karajos · Dec 14, 2022 Read more → PHP DevelopmentMezzio app development in WSL2
Install a Mezzio app (Dotkernel API) using WSL2 This article will run you through the steps of installing a Mezzio application (Dotkernel API) in WSL2 and run it on Ubuntu 20.04 LTS.
Alex Karajos · Sep 08, 2022 Read more → PHP DevelopmentDatabase seeding: Doctrine data fixtures vs Phinx
Database seeding: Doctrine data fixtures vs Phinx Seeding the database means populating the database with initial values, it's commonly used for seeding the user roles and user accounts. Seeding the d…
MarioRadu · Aug 31, 2022 Read more → PHP DevelopmentFloating-Point Arithmetic - Why is (int)((0.7+0.1)*10) = 7 ?
This article applies to PHP 5.x but also to PHP 7 While using floating-point arithmetic you might have noticed that not all the calculus results are as expected, this can usually be observed when cast…
Gabi DJ · Jan 26, 2016 Read more → PHP DevelopmentPHP Environment : Development Staging Production
In hosted software development, the environment refers to a server tier designated to a specific stage in a release process. The purpose of these environments is to improve the development, testing an…
Teo · Jul 30, 2010 Read more → PHP DevelopmentProtection against SQL Injection using PDO and Zend Framework - part 2
Following the preview article about SQL Injection, here is more - a strong argument why you should use Zend Framework for handling database access. Zend_Db is the primary class used for access the dat…
Teo · Jun 18, 2010 Read more → PHP DevelopmentProtection against SQL Injection using PDO and Zend Framework
SQL injection is a technique that exploits a security vulnerability occurring in the database layer of an application. Usually, user input is not filtered by the script and is passed into a SQL statem…
arhimede · Jun 16, 2010 Read more →