What PHP application design/design patterns do you use?

前端 未结 9 1353
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-29 18:12

Please share your favorite application design / design patterns for use in PHP with me. Some things I\'d like to know:

  • How your folders are designed
  • How y
9条回答
  •  日久生厌
    2021-01-29 18:42

    Using Zend Framework and Doctrine, my folder structure usually looks like this:

    root
      app
        config         (db config, routing config, misc config)
        doctrine       (fixtures, migrations, generated stuff, etc)
        lib
        logs
        models         (doctrine models)
        modules        (zend mvc modules)
        bootstrap.php
      docs             (db diagrams, specs, coding standards, various docs)
      pub              (web root)
      tests
      tools            (console tools, i.e. doctrine-cli)
      vendor           (zend and doctrine libraries, preferably as svn-externals)
    

提交回复
热议问题