A PHP SDK for the Receiptful API. See the Receiptful API Docs for more information.
Via Composer
$ composer require rawcreative/receiptful
<?php
require '../vendor/autoload.php';
$receiptful = RawCreative\Receiptful\Api::factory([
'apiKey' => 'your api key here'
]);
$result = $receiptful->receipts();
var_dump($result);
For easy integration with Laravel 5, install the companion package:
$ composer require rawcreative/laravel-receiptful
$receipts = $receiptful->receipts();
$receipt = $receiptful->receipt($receiptId);
See API Docs for a list of required parameters
$result = $receiptful->sendReceipt(array $receipt);
$result = $receiptful->resendReceipt($receiptId);
Alias for resendReceipt
$result = $receiptful->resend($receiptId);
$coupons = $receiptful->coupons();
$coupon = $receiptful->coupon($couponId);
$coupon = $receiptful->deleteCoupon($couponId);
$coupon = $receiptful->useCoupon($couponId, $reference, $amount, $currency);
Retrieves info for API key
$user = $receiptful->currentUser();
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.