PHP Slim Starter

In this edition of Stripe Developer Office Hours, follow along as CJ Avilla walks through the fundamentals of PHP with Slim.

### Resources

- Slim web framework http://www.slimframework.com/
- curl command line tool https://curl.haxx.se/
- phpdotenv https://github.com/vlucas/phpdotenv
- Stripe Webhooks Guide https://stripe.com/docs/webhooks/build
- Stripe Event Types https://stripe.com/docs/api/events/types
- Code: https://github.com/stripe-samples/developer-office-hours/tree/master/starter

### Presenter

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

### Table of contents

00:05 Introduction
01:48 Agenda
02:20 See how to install with Stripe CLI
03:25 Create client and server directories
04:10 Add boilerplate HTML
06:18 Install dependencies with composer
08:05 Create index.php
09:30 Test API call to Stripe
11:00 Setup Slim
13:20 Add a GET routes
17:40 Make GET request from client
19:30 Chrome devtools overview
21:40 Add a POST route
25:40 Make POST request from client

### Support

If you have a question, please feel free to reach out to our support team on Discord at https://stripe.com/go/developer-chat.

### Updates

Sign up to stay updated with developer news: https://go.stripe.global/dev-digest

### Feedback

If you have any feedback about this or other episodes, let us know: https://forms.gle/VjNqzRhotM2snYo88.
#Stripe #Payments