Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1944

Joomla! 5.x Coding • Re: Add a custom library to Joomla

$
0
0
Joomla doesn't support installing custom Composer packages.Technically, because this library doesn't have any dependencies (yet), you could install it as a Joomla library and use Joomla's native autoloader (example shown in linked documentation) to load it. But this could quickly become a maintenance hell if it decides to add some dependencies. So another option would be to ship your own vendor directory with all Composer packages. Optionally use PHP-Prefixer, PHP-Scoper or similar tool to prefix namespaces to prevent potential conflicts with other extensions.
OK, thanks for your reply.

Statistics: Posted by benyrfg — Mon Nov 25, 2024 10:04 pm



Viewing all articles
Browse latest Browse all 1944

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>