wplib / better-wp-config

A better way to bootstrap WordPress
8 stars 2 forks source link

Select a coding standard #8

Open markkap opened 6 years ago

markkap commented 6 years ago

Raising the issue because it is likely to have an impact on file structure.

Both the WordPress coding standard and the PSR require one class per file which is not how the code is structured right now. I would prefer going with the wordpress one, but it is not critical.

In a any case this probably means that the relevant files need to be in a directory

mikeschinkel commented 6 years ago

@markkap Clearly I put them all classes in one file so that it could easily be included from the root, as one file. But with #4 that becomes much less of an issue.

Part of me likes the idea of the server only having to open one PHP file for all these classes, but a good server configuration will make that issue mostly moot so probably better to restructure into one class per file.

mikeschinkel commented 6 years ago

@markkap See #12