Answer the question
In order to leave comments, you need to log in
Converters, etc. data converters to take out in helpers?
Where to put things like in the application:
- Image resizer (there is no separate class for working with images)
- Data converter from the database to the template format
- All sorts of constructors of complex multi-level JSON structures before adding to the database and after fetching them
Are these all helpers? Because they don’t seem to have a place in vaditors, and separate classes have not been created for them.
Answer the question
In order to leave comments, you need to log in
You make separate high-grade objects.
Interface, abstraction, class.
Then you use it as a property of the constructor or with the help of another mechanism.
But yes, all these things should be independent of your project.
You can do it as separate applications and install it into the application through the composer.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question