X
X
xxvxx2022-01-18 23:00:38
PHP
xxvxx, 2022-01-18 23:00:38

What is the correct way to create an empty new base project template?

Right now I'm trying to make an empty base project, but I don't like the folder structure that I'm building...
Empty base project using SCSS, PHP, JS, GULP,
Maybe someone can share if you don't mind the git link...
In general, everything will be useful on I’m thinking of making a template to fill in the git
and take it from there, it seems so convenient to me ...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
Timur Maslov, 2022-01-19
@xxvxx

Do not reinvent the wheel) Look how the authors of the laravel and symfony frameworks solved this issue

N
Newto, 2022-01-19
@Newto

You can get a lot of advice here. There are different views on building a file architecture on a server.
The best decision is the decision you make yourself. You can follow only a few rules:
1. A separate folder for CSS. Don't put CSS files where something else is.
2. Separate folder for GENERAL js. Those. js that you use on more than one page, as well as the js library of functions should be in a separate directory. If for individual pages you use a separate js that is not used anywhere else, then you can put it in the folder with the php script responsible for the page, as an example: /registration(here register.php)/js/register.js
3. As for php files, it's not so easy to answer here. Usually there are automatically connecting files with classes and files responsible for individual modules (simplified - pages). So, you can put auto-connecting files in /auto/classes (as an option), and structure files responsible for individual pages according to the "page/page.php" type.
This is if simplified.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question