🎉 Hooray! After 3 years of work, I've finally released the ebook on design patterns! Check it out »
Command

Command in PHP

Command is behavioral design pattern that converts requests or simple operations into objects.

The conversion allows deferred or remote execution of commands, storing command history, etc.

Learn more about Command

Usage of the pattern in PHP

Complexity:

Popularity:

Usage examples: The Command pattern is pretty common in PHP code. It’s used for queueing tasks, tracking a history of executed tasks and performing the “undo”.

Command in Other Languages

Command in Java Command in C# Command in Python Command in Ruby Command in Swift Command in TypeScript