承接 rawcreative/laravel-receiptful 相关项目开发

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

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

rawcreative/laravel-receiptful

Composer 安装命令:

composer require rawcreative/laravel-receiptful

包简介

Receiptful Integration for Laravel

README 文档

README

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.

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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