Design Pattern: Command Pattern in PHP
Command pattern encapsulates a full request in an object. So, the object can be passed as a parameter or can be queued or saved in log. Later the object can be revived and we get the full request, which can be executed and/or undoned at any point in time. This article demonstrates Command pattern implementations in PHP.