How do I add a php SDK to elgg now?

for previous elgg version i added a php sdk like:

require_once('shopi-php-sdk-master/autoload.php');

 

in the newest version of elgg it is using elgg-plugin.php

 

how would i add this reference now?

  • If you import your external SDK with Composer the autoload file of Composer will automatically be included during plugin boot.

    If you (for some reason) aren't using Composer you can simply include your

    require_once('shopi-php-sdk-master/autoload.php');

    in the elgg-plugin.php