v3 API PHP Code Example We recommend using Twilio SendGrid PHP, our client library, available on GitHub, with full documentation. Do you have an API Key yet? If not, go get one. You're going to need it to integrate! Make sure you've set the SENDGRID_API_KEY environment variable in your env file. Using Twilio SendGrid's PHP Library Please see the Twilio SendGrid PHP example code at GitHub. Rate this page: 1 2 3 4 5 Need some help? We all do sometimes. Get help now from the Twilio SendGrid Support Team. Running into a coding hurdle? Lean on the wisdom of the crowd by browsing the SendGrid tag on Stack Overflow or visiting Twilio's Stack Overflow Collective.