Search code examples
phpzend-framework

How to know that a php project is using Zend framework?


I am writing a piece of small software to go through the folders and files of all the php projects that are passed in and detect if any of them is actually also a Zend project. Is there any particular file that I can immediately read and tell that the current project is a Zend project? or is there any convenient way to tell?


Solution

  • alt text

    This is the default directory structure that ZF creates for you when you start a project. So if you're just looking at directory structure this should work.

    Alternatively you could look to see if a directory has a hidden file called .zfproject.xml.

    I hope that helps!