1 Star 0 Fork 1

duni1989/DesignPatternsPHP

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.rst 1.77 KB
一键复制 编辑 原始数据 按行查看 历史

DesignPatternsPHP

Build Status Documentation Status Donate

This is a collection of known design patterns and some sample code how to implement them in PHP. Every pattern has a small list of examples (most of them from Zend Framework, Symfony2 or Doctrine2 as I'm most familiar with this software).

I think the problem with patterns is that often people do know them but don't know when to apply which.

Patterns

The patterns can be structured in roughly three different categories. Please click on the title of every pattern's page for a full explanation of the pattern on Wikipedia.

.. toctree::
   :titlesonly:
   :numbered:

   Creational/README
   Structural/README
   Behavioral/README
   More/README

Contribute

If you encounter any bugs or missing translations, please feel free to fork and send a pull request with your changes. To establish a consistent code quality, please check your code using PHP CodeSniffer against PSR2 standard using ./vendor/bin/phpcs -p --standard=PSR2 --ignore=vendor ..

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/xuanxingang/DesignPatternsPHP.git
git@gitee.com:xuanxingang/DesignPatternsPHP.git
xuanxingang
DesignPatternsPHP
DesignPatternsPHP
master

搜索帮助