Dear Developers,
I am trying to use composer.json in my custom application to load some external libraries, for example html2text/html2text
I added:
“require”: {
“fxp/composer-asset-plugin”: “^1.2.2”,
“html2text/html2text”: “^4.0”
}
to the composer.json file in the root directory of my application.
Then I executed
composer.phar update
in that same root directory and html2text was installed in the vendor directory of my application.
But when I tried to use html2text/html2text in my application the system told me that it could not find html2text/html2text. To solve this I added:
require ‘/var/www/egroupware/MY_APP/vendor/autoload.php’;
to my code.
Then it worked.
Is there a way to trigger the autoloading without adding the line above?
Thank you and best regards
Alex