<p>I am wondering what  directory structure are commonly used in development projects. I mean with the idea of facilitating builds, deploys release, and etc.</p>

<p>I recently used a <a href="http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html" rel="nofollow noreferrer">Maven structure</a> for a java project, but I am not sure it's the best structure for a non-maven driven project.</p>

<p>So, I have two questions: When you guys start new projects, what structure you use? And: What if you need to integrate two different languages, like for example java classes into a PHP application; PHP files are source files, web files, you you use a /src, /classes, webapps/php ? What are your choices in such scenarios. </p>

<p>As a note: I am wondering also what are you choices for directories names. I like the 3-letters names (src, lib, bin, web, img, css, xml, cfg) but what are your opinions about descriptive names like libraris, sources or htdocs/public_html ?</p>

[{'answer_id': 61003, 'author': 'Fernando Barrocal', 'author_id': 2274, 'author_profile': 'https://Stackoverflow.com/users/2274', 'pm_score': 0, 'selected': False, 'text': '<p>I just found a interesting document about Directory structures on Zend website:<br>\n<a href="http://framework.zend.com/wiki/display/ZFDEV/Choosing+Your+Application%27s+Directory+Layout" rel="nofollow noreferrer">http://framework.zend.com/wiki/display/ZFDEV/Choosing+Your+Application%27s+Directory+Layout</a></p>\n'}, {'answer_id': 61060, 'author': 'Jason Cohen', 'author_id': 4926, 'author_profile': 'https://Stackoverflow.com/users/4926', 'pm_score': 2, 'selected': False, 'text': "<p>Although we don't use Maven, we use the Maven directory structure.</p>\n\n<p>We've found that it accurately reflects the concepts we need (e.g. separation of deployment code from test code, code from data, installers from code).  Also we figure that <em>if</em> someday we switched to Maven, most of our process would remain the same.</p>\n"}, {'answer_id': 4540307, 'author': 'Fernando Barrocal', 'author_id': 2274, 'author_profile': 'https://Stackoverflow.com/users/2274', 'pm_score': 4, 'selected': True, 'text': '<p>After a couple years working with different structures I recently found a structure that hols most variations for me:</p>\n\n<pre><code>/project_name     (everything goes here)\n  /web            (htdocs)\n    /img\n    /css\n  /app            (usually some framework or sensitive code)\n  /lib            (externa libs)\n    /vendor_1\n    /vendor_2\n  /tmp\n    /cache\n  /sql            (sql scripts usually with maybe diagrams)\n  /scripts\n  /doc            (usually an empty directory)\n</code></pre>\n'}, {'answer_id': 8537457, 'author': 'Sridhar Sarnobat', 'author_id': 714112, 'author_profile': 'https://Stackoverflow.com/users/714112', 'pm_score': 0, 'selected': False, 'text': '<p>A 2011 update:\n<a href="http://java.sun.com/blueprints/code/projectconventions.html" rel="nofollow">http://java.sun.com/blueprints/code/projectconventions.html</a></p>\n'}]
['https://Stackoverflow.com/questions/61000', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2274/']