Answer the question
In order to leave comments, you need to log in
How to add your nicespice to the compositor autoloader?
First of all, I went there: https://getcomposer.org/doc/
But either I'm stupid and didn't understand anything, or I'm doing something wrong.
Subject: how to add your nicespice to the example "My\Libs" whose files are located in "vendor/mylibs/", where the file name starts with a capital letter and corresponds to the class name?
Answer the question
In order to leave comments, you need to log in
Everything that is in the vendor must be loaded by the composer himself, and he himself must know what and how to write (this is described in the composer.json of the vendor package). You just describe in your composer.json which package you need to include:
{
"require": {
"slim/slim": "2.*",
"twig/twig": "~1.18"
}
}
{
"autoload": {
"psr-4": {
"MyName\\MyProject\\": "application"
}
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question