How does Joomla initialise all active libraries and plugins?

by Olle Härstedt   Last Updated September 14, 2018 09:10 AM

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


This is my code so far:

    define('_JEXEC', 1); 

    $joomlaRootFolder = \Yii::$app->params['ebics']['joomlaRootFolder'];

    if (file_exists($joomlaRootFolder . '/defines.php')) {
        include_once $joomlaRootFolder . '/defines.php';

    if (!defined('_JDEFINES')) {
        define('JPATH_BASE', $joomlaRootFolder);
        require_once JPATH_BASE . '/includes/defines.php';

    require_once JPATH_BASE . '/includes/framework.php';

    // Instantiate the application.
    $app = \JFactory::getApplication('site');

    // Breaks here!

The library works as expected in our Joomla code, so that's not the problem.

Related Questions

Popup window for a custom backend button

Updated June 27, 2016 08:04 AM

Including extension configuration for a library

Updated August 04, 2017 11:10 AM

How to install thied party library

Updated March 04, 2019 16:10 PM