2017 © Pedro Peláez
 

library receiptful

Receiptful PHP Integration

image

rawcreative/receiptful

Receiptful PHP Integration

  • Friday, May 15, 2015
  • by rawcreative
  • Repository
  • 1 Watchers
  • 1 Stars
  • 11 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Receiptful PHP SDK

Latest Version Software License Total Downloads, (*1)

A PHP SDK for the Receiptful API. See the Receiptful API Docs for more information., (*2)

Install

Via Composer, (*3)

``` bash $ composer require rawcreative/receiptful, (*4)


## Usage ```php <?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:, (*5)

$ 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, (*6)

$result = $receiptful->sendReceipt(array $receipt); 
resendReceipt
$result = $receiptful->resendReceipt($receiptId);
resend

Alias for resendReceipt, (*7)

$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, (*8)

$user = $receiptful->currentUser();

Contributing

Please see CONTRIBUTING for details., (*9)

License

The MIT License (MIT). Please see License File for more information., (*10)

The Versions

15/05 2015

dev-master

9999999-dev https://github.com/rawcreative/receiptful

Receiptful PHP Integration

  Sources   Download

MIT

The Requires

 

by :Tim Debo

php receiptful

13/05 2015

0.2.0

0.2.0.0 https://github.com/rawcreative/receiptful

Receiptful PHP Integration

  Sources   Download

MIT

The Requires

 

The Development Requires

by :Tim Debo

php receiptful

13/05 2015

0.1.0

0.1.0.0 https://github.com/rawcreative/receiptful

Receiptful PHP Integration

  Sources   Download

MIT

The Requires

 

The Development Requires

by :Tim Debo

php receiptful