I am working on an application that will connect to the Intuit Quickbooks API through their REST PHP SDK. In basic PHP, everything works for me without problems, since I upload files as follows:
require_once('../api/config.php');
require_once(PATH_SDK_ROOT . 'Core/ServiceContext.php');
require_once(PATH_SDK_ROOT . 'DataService/DataService.php');
require_once(PATH_SDK_ROOT . 'PlatformService/PlatformService.php');
require_once(PATH_SDK_ROOT . 'Utility/Configuration/ConfigurationManager.php');
Now I need to use the libraries in the Symfony2 controller from the Bundle, and from here comes my doubt, how can I achieve this easily? I read a lot of documents link1 , Component loader Symfony Class and some others, but even this is completely incomprehensible to me. At the moment, I created this structure in my folder /vendor, as shown in the figure:

The file config.phpthat your can see there has this code:
$sdkDir = __DIR__ . DIRECTORY_SEPARATOR;
if (!defined('PATH_SDK_ROOT'))
define('PATH_SDK_ROOT', $sdkDir);
if (!defined('POPO_CLASS_PATH'))
define('POPO_CLASS_PATH', $sdkDir . 'Data');
use com\mikebevz\xsd2php;
require_once(PATH_SDK_ROOT . 'Dependencies/XSD2PHP/src/com/mikebevz/xsd2php/Php2Xml.php');
require_once(PATH_SDK_ROOT . 'Dependencies/XSD2PHP/src/com/mikebevz/xsd2php/Bind.php');
set_include_path(get_include_path() . PATH_SEPARATOR . POPO_CLASS_PATH);
foreach (glob(POPO_CLASS_PATH.'/*.php') as $filename)
require_once($filename);
if (!defined('PHP_CLASS_PREFIX'))
define('PHP_CLASS_PREFIX', 'IPP');
, , , QBO PHP SDK, :
- , Symfony2, ..?
- PSR-0, Symfony Loader Component ?
- - , ?