PHP.Watch Articles

Remove Unnecessary PHP Composer Polyfills

Remove Unnecessary PHP Composer Polyfills

How to prevent composer from installing polyfills when you already fulfill the requirements.
Hierarchy of PHP exceptions

Hierarchy of PHP exceptions

An overlook of PHP core Exceptions including a chart on how PHP core exception classes are inherited.
WordPress Security Advisories

WordPress Security Advisories

A composer meta-package to prevent installing WordPress core, packages, and themes with known vulnerabilities.
Fix PHP 7.4 + MySQL 8 errors with `server has gone away`

Fix PHP 7.4 + MySQL 8 errors with `server has gone away`

Quick write-up to help with `server has gone away` issues with PHP 7.4 when used with MySQL 8.
Upgrade/Installation guide for PHP 7.4 on Ubuntu and Debian

Upgrade/Installation guide for PHP 7.4 on Ubuntu and Debian

A comprehensive guide on how to install or upgrade to PHP 7.4 on Debian and Ubuntu systems.
PHP 7.3 Same-site Cookies

PHP 7.3 Same-site Cookies

How to use SameSite cookies to minimize CSRF attacks, supported since PHP 7.3.
Install/Upgrade to PHP 7.3 - Ubuntu & Debian

Install/Upgrade to PHP 7.3 - Ubuntu & Debian

A guide to install or upgrade PHP version 7.3 on Ubuntu and Debian systems.