承接 rawcreative/receiptful 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rawcreative/receiptful

最新稳定版本:0.2.0

Composer 安装命令:

composer require rawcreative/receiptful

包简介

Receiptful PHP Integration

README 文档

README

Latest Version Software License Total Downloads

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-13