Questions tagged [libraries]
Libraries are collections of external software used in Joomla.
19 questions
0 votes
1 answer
397 views
Autoload external library in Joomla 5 component
In my Joomla 4 component I successfully used the Mpdf library. Since migrating to Joomla 5, the library does not initialise properly. This is the setup that worked in Joomla 4: class MyModel extends ...
2 votes
2 answers
73 views
How to find what is dependent on a particular library?
I have a library installed that I'm reluctant to remove because I don't know what is dependent on it. How can I find that out?
0 votes
1 answer
244 views
How to use 3rd party libraries with a Namespace?
I need to use a library I found on Github in an existing component, but my near non-existent knowledge of NAMESPACE is making it impossible. To merge PDF files, I'm using the library at https://github....
1 vote
1 answer
168 views
Sharing a MVC resources library between two components
Lets say my component is called dumbo. It contains all kind of MVC stuff and works well. Now i have a second component that is called jumbo. I need both components to share some models, controllers ...
0 votes
2 answers
101 views
What directory should contain GPL scripts from external source? Best practice?
I am making a custom gallery module using Light Gallery. In most cases, I would just place all my JS files inside /assets/js directory. But I wonder if this is good practice when using an external ...
1 vote
1 answer
138 views
Joomla Framework folder "libraries" missing
I'm having difficulties when trying to implement the example given on https://docs.joomla.org/Framework:Creating_a_Stand-alone_Application#Examples I'm trying to do the first example and I'm getting ...
0 votes
1 answer
283 views
Creating a Library with multiple classes within a single file
I am trying to incorporate an external application as a library within Joomla which I have done before on a couple of occasions, however in this case there is a single .php file with about 20 classes ...
0 votes
0 answers
330 views
Load namespaced library from component in J!4
I'm using the latest build of J!4. I have a component that has library files under joomla_root\libraries\mycomponent but the namespaced files in this directory aren't loaded by Joomla! 4 autoloader. ...
1 vote
1 answer
442 views
Load language files inside custom library
I have a a library inside \libraries\mylib\. That library contains an include.php which uses following to load language files that are also inside a /language folder in the library: $lang = JFactory:...
0 votes
1 answer
974 views
How to use external PHP library in Joomla! CLI application - Class not found
I'm working on a custom Joomla! CLI application and would like to rely on an external PHP library to reuse some functionality. // Set flag that this is a parent file. const _JEXEC = 1; ...
1 vote
1 answer
137 views
How does Joomla initialise all active libraries and plugins?
I'm trying to import Joomla in a Yii application. It goes well, but some plugins and libraries are not loaded. Does anyone know how to achieve this? Something like JPluginHelper::loadAllActivePlugins(...
4 votes
1 answer
1k views
Using external library with a component
My component is using phpExcel library; I put it into /libraries/phpexcel/Classes. This is an independent (and quite big) library, so I thought, that it would be wise to tell the admin where to put it ...
1 vote
1 answer
123 views
Including extension configuration for a library
Am I guessing right that <config> in manifest file for a Joomla library is not supported? Only for modules, components, templates and plugins?
2 votes
1 answer
260 views
How stop update/installation by install script and mantain actual folder?
I found by Joomla 3.x, that I can use an install script something like this: class lib_exampleInstallerScript { public function install($adapter) { // during install } ...
1 vote
2 answers
709 views
Edit Joomla 3.x library file (to customize form validation error messages)
I want to change some lines in this Joomla's 3.6.5 library file: C:\xampp\htdocs\joomla\libraries\joomla\form\form.php I searched many places to find out how to do this, but unfortunately there isn'...