High level api for stripe-php
Install with composer:
composer require "mapado/stripe:~0.7"
Initialize the API:
$privateKey = 'pk_.....'; $stripeApi = new \Mapado\Stripe\StripeApi($privateKey);
call the wanted method:
$invoice = $stripeApi->getInvoice('invoice_id');
Those methods returns Proxy classes. You can chain method like this:
$subscription = $invoice->getSubscription();
The current package is in early development. A very small number of methods is implemented.
Feel free to fork it and create pull requests to add your logic.