A collection of barebones PHP sample code.
This is a work in progress... more to come!
Note: This code uses the public API keys provided in the Stripe documentation, but you should never reveal your secret Stripe API key to the public!
- Composer
- PHP 7.3+
- Clone or download this repository
- Run
composer install
in the top-level directory of this repository to install the Stripe library - (Optional) Update the
$config
values in each sample you want to run with your own API keys and other values
- Run
php -S localhost:4242
from the top-level directory of this repository - Open http://localhost:4242