Having a bit of an issue with this one, I managed to get a working interface to Magento by including the following code, which in turn includes the Magento 2 bootstrap.php use MagentoFrameworkAppBootstrap; require_once("../app/bootstrap.php"); $params = $_SERVER; $bootstrap = Bootstrap::create(BP, $params); $obj = $bootstrap->getObjectManager(); $state = $obj->get('MagentoFrameworkAppState'); $state->setAreaCode('adminhtml'); return $obj; […]