New answers tagged directory-structure
Most modern PHP projects are structured much like a Java package; ie a top level source folder, with subdirectories for each vendor, containing subdirectories for individual packages and so on. However, because PHP doesn't have the same kind of loading of classes as a language like Java, it loads its classes using an autoload function. This means that files ...
I always prefer files for this purpose, simply because it makes the design easier for others to reuse and test: There is no need to install or maintain a database. You can clone or move your "database" simply by cloning or moving the file system.
Top 50 recent answers are included