Answer the question
In order to leave comments, you need to log in
Where to put the helper for my library?
I am developing a library. It can be used both separately and with frameworks. There are a couple of functions that are often used in my lib. Where is the best place to put them? Somehow I don’t want to connect a third-party package because of a small function. And litter the global space too.
Answer the question
In order to leave comments, you need to log in
You can put functions in a separate namespace and connect them via composer.json in the autoload/classmap section.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question