New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

rawcreative/laravel-receiptful

Receiptful Integration for Laravel
8
Install
composer require rawcreative/laravel-receiptful:dev-master
PHP:>=5.4.0
License:MIT
Last Updated:May 13, 2015
Links: GitHub  ·  Packagist
Maintainer: rawcreative

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.

Installation

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

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

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

'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:

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

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

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

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

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.

Related Packages

valorin/random

Random is a simple helper package designed to make it easy to generate a range o...

436,338 234
php
cline/variable-keys

Laravel Blueprint macros for variable primary key and morph types

24,232 0
php
cline/struct

Lean, attribute-driven Laravel data objects with explicit validation and Eloquen...

19,286 0
php
cline/toggl

Advanced feature flag management with strategies, time bombs, and groups

13,283 0
php
cline/sequencer

Sequential migration and operation orchestration for Laravel

12,218 0
php