mapado / stripe
High level api for stripe-php
Installs: 2 663
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 13
Forks: 1
Open Issues: 0
Requires
- stripe/stripe-php: 1.*
Requires (Dev)
- atoum/atoum: dev-master@dev
README
High level api for stripe-php
Installation
Install with composer:
composer require "mapado/stripe:~0.7"
Usage
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();
Status
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.