Skip to content

Instantly share code, notes, and snippets.

@Thinkscape
Created September 14, 2011 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Thinkscape/1217290 to your computer and use it in GitHub Desktop.
Save Thinkscape/1217290 to your computer and use it in GitHub Desktop.
---------- PROPOSAL 1 --------------------
* directory names in plural form
* assets grouped by purpose
------------------------------------------
/application
/library
/Zend
/OtherVendor
/modules
/Statistics
/controllers
- IndexController.php
- ErrorController.php
- UserController.php
/forms
- Login.php
- ChangePass.php
/services
- Paypal.php
- Usermanager.php
/routes
- main.ini
/configs
- main.ini
- debug.ini
/public
/img
- logo.png
- user.png
/js
- statistics.js
/src
/Statistics
/SomeNamespace
- Interface.php
- SomeClass.php
/public
/img
/js
---------- PROPOSAL 2 --------------------
* only static assets grouped in dirs with plural form
* all php-classes inside src/
------------------------------------------
/application
/library
/Zend
/OtherVendor
/modules
/Statistics
/routes
- main.ini
/configs
- main.ini
- debug.ini
/public
/img
- logo.png
- user.png
/js
- statistics.js
/src
/Service
- Paypal.php
- Usermanager.php
/Form
- Login.php
- ChangePass.php
/Controller
- IndexController.php
- ErrorController.php
- UserController.php
/SomeNamespace
- Interface.php
- SomeClass.php
/public
/img
/js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment