2017 © Pedro Peláez
 

library laravel-receiptful

Receiptful Integration for Laravel

image

rawcreative/laravel-receiptful

Receiptful Integration for Laravel

  • Wednesday, May 13, 2015
  • by rawcreative
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Receiptful for Laravel 5

This is a package to integrate Receiptful with Laravel. You can use it to easily connect to the Receiptful API to manage your Receiptful account. This package also provides a Facade for easy shortcuts., (*1)

Installation

Require this package in your composer.json and run composer update (or run composer require rawcreative/laravel-receiptful:0.1.x directly):, (*2)

"rawcreative/laravel-receiptful": "0.1.*@dev"

After updating composer, add the ServiceProvider to the providers array in config/app.php, (*3)

'RawCreative\Receiptful\ReceiptfulServiceProvider',

You will need to add your Receiptful API key to the services.php config file in your app's config directory. We recommend utilizing your .env file to populate the key:, (*4)

'receiptful' => [
    'secret' => env('RECEIPTFUL_SECRET', ''),
],

To use the Facade, add the following to the facades array your app.php config file., (*5)

 'Receiptful' => 'RawCreative\Receiptful\Facade',

When calling the Receiptful facade/instance, it will create the Api using the key provided in the services config file., (*6)

Examples

// All receipts
$receipts = Receiptful::receipts(); 

// Individual receipt
$receipt = Receiptful::receipt(['receipt_id' => 2]);

// Coupons
$coupons = Receiptful::coupons();

Credits

License

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

The Versions

13/05 2015

dev-master

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

Receiptful Integration for Laravel

  Sources   Download

MIT

The Requires

 

by :Tim Debo

laravel php receiptful