Questions tagged [libraries]

Libraries are collections of external software used in Joomla.

Filter by
Sorted by
Tagged with
0 votes
1 answer
46 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 ...
cappu's user avatar
  • 137
2 votes
2 answers
30 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?
thoni56's user avatar
  • 277
0 votes
1 answer
160 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....
GDP's user avatar
  • 7,715
1 vote
1 answer
112 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 ...
Mike's user avatar
  • 341
0 votes
2 answers
48 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 ...
TVBZ's user avatar
  • 213
1 vote
1 answer
101 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 ...
Thiago Guimarães's user avatar
0 votes
1 answer
101 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 ...
Irata's user avatar
  • 3,597
0 votes
0 answers
272 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. ...
user3533235's user avatar
1 vote
1 answer
308 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:...
Mike's user avatar
  • 341
0 votes
1 answer
896 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; ...
wanderlusted's user avatar
1 vote
1 answer
112 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(...
Olle Härstedt's user avatar
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 ...
user4035's user avatar
  • 179
1 vote
1 answer
84 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?
Olle Härstedt's user avatar
2 votes
1 answer
208 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 } ...
CyberHollow's user avatar
1 vote
2 answers
660 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 ...
user avatar
1 vote
2 answers
111 views

Joomla got hacked. Is it safe to replace the entire library directory

the site is very old. version 3.3.0. I don't know if the libraries folder is ever supposed to have anything changed in it or if it would be safe to just delete that directory and upload a new ...
rudtek's user avatar
  • 113
1 vote
2 answers
349 views

Popup window for a custom backend button

I have created a custom backend button (JToolbarHelper::custom()), when a user clicks the button it shows a popup window with some content. How can I do so, not using JToolbarHelper::preview() as this ...
Nikita Dhiman's user avatar
0 votes
1 answer
1k views

Is it possbile to create custom library with namespace

It is possible to create library package with namespace as below? namespace Main{ class PrefixFolderLib1{ //functions } } Not sure how the JLoader will understand the namespace.
Malaiselvan's user avatar
  • 2,721
2 votes
1 answer
826 views

Manifest file format for installing a Library package

I cant't able to find a Joomla help page explaining how a library type extension can be installed. Joomla Manifest Files I refer the above URL and don't find any further explanation on library ...
Malaiselvan's user avatar
  • 2,721