jogorek Posted February 11, 2018 Share Posted February 11, 2018 Hello guys, I want to add phpfastcache (https://packagist.org/packages/phpfastcache/phpfastcache) to WHMCS composer / autoload - what is the elegant way to do it? I triedfew diffrent ways, but nothing has worked well, would really be gratefull if somebody could give me an advise... Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted February 12, 2018 Share Posted February 12, 2018 Instead of placing this in the vendor/ directory, try creating an includes/ directory in your module folder and pulling it from there. That might work better for you as sometimes adding non bundled vendor dependencies in the 'vendor/' directory can have ill effects on the system especially during upgrades as it will overwrite the core files. Another route is to as well place a vendor/ directory within the add-on module and then place your dependency requirements in the composer file and then autoload that from the {modulename}.php main file. Please note, this is generally not something we support and it could break your install 1 Link to comment Share on other sites More sharing options...
jogorek Posted February 12, 2018 Author Share Posted February 12, 2018 Thank you very much, will try both solutions! Link to comment Share on other sites More sharing options...
Recommended Posts