Articles

A series of articles on PHP and various topics that are of concern to any PHP developer Click here to view all articles.

How to Develop a WordPress Plugin

Want to develop a WordPress plugin, but not sure where to start? In this blog, we give an overview of the skills you'll need, and discuss the basics of how to develop a WordPress plugin, and how to prepare for distribution.

 

openrouter.ai Simplified OpenRouter PHP SDK

Learn how the Simplified OpenRouter PHP SDK lets you tap hundreds of AI models through one unified API. Install with Composer, send a chat request in a few lines, and switch models—GPT, Claude, and more—by changing a single string.

 

Drupal Module Development Guide

The article give you an overview of Drupal module development, Drupal architecture, environment setup, module anatomy, basic creation steps, best practices, advanced concepts, and community contribution.

 

Subnets Do Not Catch Fish!


 
Understanding IPv4 addressing, classful networks, and subnet masks is important knowledge for a full-stack PHP developer. The articles uses an AWS EC2 VPC setup example to clarify CIDR notation.

 

Security Issues: ctype_digit() Weirdness

The PHP ctype_* family of functions is widely used for form data validation.  What most developers don't realize is that ctype_digit() holds a hidden trap that can result in false positives.  In this article we explore this dirty little secret.

 

How to Avoid Email SPAM


 
A question on everyone's mind is: how did they get my email address in the first place? This articles explores how email addresses are commonly acquired and what you can do to prevent this.

 

OpenAI PHP: Quickstart Integration Guide

A guide to integrating OpenAI with PHP apps, covering API setup, SDK choices, model selection, secure key handling, cost control, performance, and best practices. The focus is on OpenAI, but applies to any AI platform.

 

How to Spot Email Phishing


 
Phishing is a favorite vehicle for attackers to gain access to your system.  A lot has been written on this subject, but it's important enough to merit yet another article, this time based upon actual messages received.

 

Using the PHP cURL Extension in REST APIs

Overview of how you can use the cURL extension to interact with remote servers and REST APIs, run cURL commands, manage concurrent multi-requests, transfer data securely, and apply troubleshooting techniques for debugging network-related issues in PHP applications.

 

PHP Basics: 5 Steps to Improve Your Skills

Want to learn the PHP basics? Walk through how to get started as a beginner PHP developer, starting from the fundamental concepts of programming to the nuances of PHP language syntax and semantics.

 

PHP 8.2 Disjunctive Normal Form Types

Understanding the disjunctive form type introduced in PHP 8.2 allows for more concise and expressive code when dealing with union types. In this article you learn about DNF and how it fits into your PHP code.

 

OOP File Handling Using the Standard PHP Library

The article explains the benefits of using PHP's Standard PHP Library for object-oriented file handling. It covers improving code structure, efficiency, maintainability, and performance for file-related tasks.

 

Understanding PHP Object-Oriented Programming

From flexibility to scalability, object-oriented programming is a programming paradigm that offers a wide range of benefits. In this article you learn about the foundational concepts of PHP object-oriented programming.