| Package Data | |
|---|---|
| Maintainer Username: | rawcreative |
| Maintainer Contact: | tim@rawcreativestudios.com (:Tim Debo) |
| Package Create Date: | 2015-05-13 |
| Package Last Update: | 2015-05-13 |
| Home Page: | |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-10 03:08:40 |
| Package Statistics | |
|---|---|
| Total Downloads: | 8 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 0 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
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.
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.
// All receipts
$receipts = Receiptful::receipts();
// Individual receipt
$receipt = Receiptful::receipt(['receipt_id' => 2]);
// Coupons
$coupons = Receiptful::coupons();
The MIT License (MIT). Please see License File for more information.