Jump to content

Recommended Posts

How would you recommend structuring your project directory.

 

For instance, where should vendor go?  What about public folder, and what do you call it (html, public, etc).  Should "src" be used, and what for?  What should be ignored in Git (i.e. vendor and logs)?  Should public js/css files be directly in the public directory, or should they be located in the code directory and a symbolic link used?

 

Is there some sort of psr standard?  My hopes are to be consistent with the industry.

 

Thanks

- Put vendor/ at the same level as your own directory for classes and such - probably at the top

- "public" can be called whatever the hell you want it to be

- IMO "src" doesn't make sense for PHP so call it something else

- Ignore files that you don't want in source control

- Putting public files in a "public" directory is reasonable; symbolic links are a hassle to deploy

- If you want to know whether there's a PSR then you should check if there's a PSR

- The industry is not consistent

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.