Advanced Topics

This category covers advanced PHP topics such as OOP, design patterns, database, web services, and emerging technologies. Readers can learn how to leverage advanced PHP techniques to build scalable and robust web applications.

PHP Design Patterns Game: Factory Method — Recruiting Heroes Without Hard-Coding Classes

0
Welcome back to PHP Design Patterns Game. Our adventure needs heroes, but the recruitment system is becoming difficult to maintain. Every time we introduce a new character class, another conditional statement...

PHP Design Patterns Game: Abstract Factory — Three Worlds, One Adventure Engine

0
Our PHP Design Patterns Game adventure continues with three different worlds: a forest, a frozen kingdom, and a volcanic fortress. Each environment contains its own enemies and rewards, but the player...

PHP Enums in Practice: Building a Type-Safe Order Workflow

0
Order processing looks simple until business rules begin to accumulate. A new order can be paid, shipped, cancelled, or refunded, but not every transition should be possible from every state. If...

PHP Design Patterns Game: The Composite Pattern — A Dungeon of Nested Enemies

0
Welcome to another installment of PHP Design Patterns Game. Today, our dungeon contains individual enemies, enemy squads, and larger groups that contain other groups.The challenge is deceptively simple: how can the...

PHP Fibers: What They Solve, What They Don’t, and How to Build a Cooperative...

0
PHP has traditionally been associated with a straightforward execution model: receive a request, execute application code, produce a response, and finish. This model remains effective for a large proportion of web...

PHP Password Hash Migration: Upgrade Credentials Without Forcing a Password Reset

0
Password security does not remain static. Hardware becomes faster, recommended hashing parameters evolve, and applications accumulate credentials created under different security policies.For an established PHP application, changing the password hashing algorithm...
Isometric dungeon room assembled from walls, floor tiles, torches, an archway, and a treasure chest.

PHP Design Patterns Game: The Builder Pattern — Construct a Dungeon One Room at...

0
Welcome back to PHP Design Patterns Game, our practical series exploring software design through small, playable examples.Today we are building a dungeon.A dungeon room may contain enemies, treasure, traps, and an...
Editorial illustration of documents being indexed and searched through a database using highlighted matching terms.

PHP + SQLite FTS5: Build a Full-Text Search Engine Without Elasticsearch

0
Not every web application needs Elasticsearch, OpenSearch, or a dedicated search infrastructure. For many projects, the immediate requirement is much simpler: allow users to search articles, documentation, product descriptions, or internal...
Pixel-art RPG character equipped with configurable items, illustrating object-oriented game composition.

PHP Design Patterns Game: The Command Pattern — Undo and Replay Player Actions

0
Welcome back to PHP Design Patterns Game!In our previous installment, we explored how the Decorator Pattern allows a game character to acquire additional capabilities without creating a separate class for every...

PHP Design Patterns Game: The Command Pattern — Undo and Replay Player Actions

0
Welcome back to PHP Design Patterns Game! In our previous articles, we explored how the State Pattern changes an object's behavior according to its condition and how the Decorator Pattern adds...