PHP Starter

Learn how we structure the Stripe Samples and other Stripe tutorials when working with PHP. We'll cover how to setup and install dependencies with Composer, load API keys and settings from .env, and how to setup a basic webhook handler.

### Table of contents

00:00 Overview
03:00 Create project structure
03:40 Test a "hello world" php script
04:10 Install stripe-php with composer
05:30 Make an API call to Stripe
06:40 Scaffold the HTML
07:58 Load API keys from .env
12:40 Convert server rendered example to JSON rendered example
14:12 Make POST with fetch client-side
16:27 Setup a webhook handler

### Presenter

CJ Avilla - Developer advocate at Stripe - https://twitter.com/cjav_dev

### Support

If you have a question, please feel free to reach out to our support team at https://support.stripe.com/.

### Feedback

What would you like to see in future episodes? https://docs.google.com/forms/d/e/1FAIpQLScx_BtXcakIJ_EFso-4-fnCrTVFXxsh-5BPM-SdhNG6W7kzbw/viewform