PHP Development

PHP Development

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…

Read more →
PHP Development

AlmaLinux 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.

Read more →
PHP Development

Mezzio 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.

Read more →
PHP Development

Database 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…

Read more →
PHP Development

Floating-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…

Read more →
PHP Development

PHP 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…

Read more →
PHP Development

Protection 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…

Read more →
PHP Development

Protection 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…

Read more →