PHP - DocumentRoot logic (optional php/ directory)

DocumentRoot is selected based on the existence of a common public
directory in the application code in the following order:
1. php/          # backward compatible with OpenShift Origin v1/v2
2. public/       # Zend Framework v1/v2
3. public_html/  # Apache per-user web directories
4. web/          # Symfony, Nette etc.
5. /             # Drupal, CakePHP, CodeIgniter, Joomla, Wordpress
                 # etc.

Add following common library directories to php include_path:
- lib/
- libs/
- libraries/
- src/
- misc/
- vendor/
- vendors/

https://trello.com/c/AK1v0o4x - origin_cartridge_card_57