Search code examples
phpframeworksdirectory-structure

PHP: One system directory for a framework


Is one system directory for a framework used by multiple projects (applications) a good idea? Or should one have a single system folder per application?

It would be easier to update just one base, but perhaps they are more disadvantages then advantages to this technique?


Solution

  • Having a separated folder for each of your projects it is a better approach because, if you update a common framework directory, you have to be sure that all your projects are working fine. But if you use a framework folder per project you can update all your projects one by one.