wangxingfa/phpmodedesign

PHP mode design examples

1.0 2020-10-21 07:37 UTC

This package is auto-updated.

Last update: 2024-06-21 15:23:46 UTC


README

PHP基本的设计模式

1、工厂模式改进的数据中心模式 datacenter

2、观察者模式 observe observeranother

3、委托模式 deletgator

4、门面模式 facade facadeanother

5、策略模式 stategy

6、注册树模式 register (可以加上 对 arrayaccess 的继承 实现数组方式访问对象)

7、适配器模式 adapter

持续更新维护 不断在工作中总结