I am trying to load a third party library called Idiorm but I can't seem to get it to work. I installed it via composer like this composer require j4mie/idiorm. The library has been installed in the vendor folder. I can see it loaded in the autoload_static.php like this
public static $classMap = array (
'Collator' => __DIR__ . '/..' . '/symfony/intl/Resources/stubs/Collator.php',
'IdiormMethodMissingException' => __DIR__ . '/..' . '/j4mie/idiorm/idiorm.php',
'IdiormResultSet' => __DIR__ . '/..' . '/j4mie/idiorm/idiorm.php',
'IdiormString' => __DIR__ . '/..' . '/j4mie/idiorm/idiorm.php',
'IdiormStringException' => __DIR__ . '/..' . '/j4mie/idiorm/idiorm.php',
'IntlDateFormatter' => __DIR__ . '/..' . '/symfony/intl/Resources/stubs/IntlDateFormatter.php',
'Locale' => __DIR__ . '/..' . '/symfony/intl/Resources/stubs/Locale.php',
'NumberFormatter' => __DIR__ . '/..' . '/symfony/intl/Resources/stubs/NumberFormatter.php',
'ORM' => __DIR__ . '/..' . '/j4mie/idiorm/idiorm.php',
'SqlFormatter' => __DIR__ . '/..' . '/jdorn/sql-formatter/lib/SqlFormatter.php',
);
I can't give it a custom namespace as it is a third party library. So how do I install it correctly so that I can start using it in my controllers
OK, really simple issue once a package is downloaded via composer in my case
composer require j4mie/idiormyou can literally start "use"ing it. No pun intendedin my Model Class
use ORM.....