Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Would you at least describe what the factory has to do with it, what will it generate for you? If I understand correctly, it will be something like a response factory (see the HttpKernel component ),
but in general the project structure is usually this:
- web (contains directories with uploaded files, assets, application entry point, etc.)
- src - sources, here you need to reveal what you mean by a factory in the context of cms. And as you were told above, use the PSR-4 standard to organize sources
- vendor - third-party dependencies, it is advisable to use composer
- var - temporary files created during system operation, such as cache, logs, etc.
You also need a directory for templates, etc. You also need to store the config somewhere...
ps Look at the already existing solutions, cms that have appeared over the past couple of years ( bolt for example). Or do what you want and then redo it.
There is a PSR (PHP Specification Request) for PHP:
pettermoulding.com/php/psr
I think it's better to stick to the SP standards.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question