dreamleez/designpattern

PHP 设计模式

v1.0 2018-06-09 06:45 UTC

This package is not auto-updated.

Last update: 2024-09-23 07:48:54 UTC


README

项目介绍

  1. 使用 PHP 实现的设计模式
  2. 最简洁易懂、高可读的基础架构,
  3. 通过简单的统一的实例化 xxxClient() 对象即可使用

使用示例

使用命令模式:


$c = new CommandClient('build mvc admin y'); // 一个命令对应一个方法,如build mvc => buildMvc()
$res = $c->send(); //发送命令
print_r($res);

软件架构