require(vendor/autoload.php): failed to open stream
What you’re missing is running composer install, which will import your packages and create the vendor folder, along with the autoload script. Make sure your relative path is correct. For example the example scripts in PHPMailer are in examples/, below the project root, so the correct relative path to load the composer autoloader from there … Read more