Sendgrid-php: Are Use Cases wrong?

Created on 5 Feb 2019  路  3Comments  路  Source: sendgrid/sendgrid-php

Issue Summary

The Use Cases state: require 'vendor/autoload.php';

However the current version 7.2.1 doesn't have a vendor directory. Did I miss something obvious?

unknown or a question

All 3 comments

Hi @mwsasser, thank you for your reply.

Actually the vendor/autoload.php is created by composer and you need to run composer install before executing the sample code.

Hello @mwsasser,

If you are not using composer, please comment out the require 'vendor/autoload.php' and use:

require("<PATH TO>/sendgrid-php.php");
// If not using Composer, uncomment the above line and
// download sendgrid-php.zip from the latest release here,
// replacing <PATH TO> with the path to the sendgrid-php.php file,
// which is included in the download:
// https://github.com/sendgrid/sendgrid-php/releases

Thanks!

With Best Regards,

Elmer

Thanks, I did miss that. Hopefully it'll help someone else who is half-asleep when reading documentation too.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

morazain picture morazain  路  3Comments

izhukovich picture izhukovich  路  4Comments

moontrv picture moontrv  路  3Comments

FilipLukac picture FilipLukac  路  4Comments

KayakinKoder picture KayakinKoder  路  5Comments