rawcreative/receiptful
最新稳定版本:0.2.0
Composer 安装命令:
composer require rawcreative/receiptful
包简介
Receiptful PHP Integration
关键字:
README 文档
README
A PHP SDK for the Receiptful API. See the Receiptful API Docs for more information.
Install
Via Composer
$ composer require rawcreative/receiptful
Usage
<?php require '../vendor/autoload.php'; $receiptful = RawCreative\Receiptful\Api::factory([ 'apiKey' => 'your api key here' ]); $result = $receiptful->receipts(); var_dump($result);
Use with Laravel
For easy integration with Laravel 5, install the companion package:
$ composer require rawcreative/laravel-receiptful
Available Methods
Receipts
receipts
$receipts = $receiptful->receipts();
receipt
$receipt = $receiptful->receipt($receiptId);
sendReceipt
See API Docs for a list of required parameters
$result = $receiptful->sendReceipt(array $receipt);
resendReceipt
$result = $receiptful->resendReceipt($receiptId);
resend
Alias for resendReceipt
$result = $receiptful->resend($receiptId);
Coupons
coupons
$coupons = $receiptful->coupons();
coupon
$coupon = $receiptful->coupon($couponId);
deleteCoupon
$coupon = $receiptful->deleteCoupon($couponId);
useCoupon
$coupon = $receiptful->useCoupon($couponId, $reference, $amount, $currency);
Users
Retrieves info for API key
$user = $receiptful->currentUser();
Contributing
Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 26
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-05-13