PHP-Scoper configuration sample for WordPress plugin.
Replace YOUR_PREFIX in composer.json.
Run composer update or any composer package install/update command.
Then put the code below in your initialization code:
require_once __DIR__ . '/third-party/vendor/autoload.php';