php-pds / skeleton

Standard PHP package skeleton.
Creative Commons Attribution Share Alike 4.0 International
2.3k stars 167 forks source link

What is better?, resources, res or assets? #52

Closed DevKhris closed 3 years ago

DevKhris commented 3 years ago

Normally i tend to use "assets" otherelse than "resources" because in some of the projects i've been, some of the teams get confused about what the "resources" folder is, for some is for the styling stuff like css or sass or images only and others think is for packages like vendor, there's a way for better standard for naming this folder?

odan commented 3 years ago

Personally I distinguish between "assets" and "resources".

The "resources/" directory contains internal files that the application needs to process something, for example: xml schemas (xsd), fonts (for TCPDF), internal images like logos for PDF's, translation files, etc...

The "assets/" directory contains public available and "compiled" or "transpiled" files from webpack. This directory is public available and I put it under public/ directory, e.g. public/assets/.

Only the vendor/ directory should contain (composer) packages.