3
I have a PHP project and use commiserate to manage libraries such as Phpmailer for sending emails.
To be able to use the installed libraries just include the autoload:
require ('vendor/autoload.php');
Recently I also needed to use other libraries, but they are Javascript libraries, and I did the same procedure described above. The «problem» is that I have to include JS files:
<script type="text/javascript" src="vendor/NovaBiblioteca/js/nova.mim.js">
At the end of the second library used it does not seem anything intuitive.
How can I manage Javascript libraries?
It looks like a case of npm usage, not Composer.
– bfavaretto
@bfavaretto reading and only see npm connected to Node and Bower connected to JS, CSS and HTML. Can you clarify me?
– Jorge B.