Your code uses the conditional:
if( file_exists())
So are you sure you are using the correct path to autoload.php
as it will stop if not found and you won’t get the usual error thrown by require
?
Personally I’d be expecting to see your vendor dir outside of the wordpress install.