1. Go to this page and download the library: Download zfr/zfr-stripe library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
zfr / zfr-stripe example snippets
$client = new StripeClient('my-api-key');
$client = new StripeClient('my-api-key', '2015-10-16');
$stripeClient = new StripeClient('my-api-key', '2014-03-28');
$stripeClient = new StripeClient('my-api-key', '2014-03-28');
// Responses will be formatted according to the 2014-03-28 version...
$stripeClient->setApiVersion('2014-08-20');
// Responses will now be formatted according to the 2014-08-20 version...
$client->setApiKey('my-customers-token');
// All API calls will be made on behalf of this customer now!