We have mentioned the Joomla! library a number of times in the past. Although the library is a powerful part of Joomla!, it is not extensible although there are ongoing discussions within Joomla! to create library extensions and implement an extension dependency mechanism.
In the meantime we can use plugins as libraries. Plugins, although not designed for this, are ideally suited because they enable us to build up a shared directory structure based on several plugins.
To do this we must use a common plugin group for a library; we should think of this as the root library namespace. This XML defines a plugin called 'My Library - Base':
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE install ...