wfx/giftbit
Composer 安装命令:
composer require wfx/giftbit
包简介
Laravel Package for Giftbit Gift Cards
关键字:
README 文档
README
Giftbit is Laravel package for Giftbit to send Gift Cards. Integration for Giftbit API. Read more at https://www.giftbit.com/api-documentation
This package will give you a simplest APIs to Create Giftbit Gift Cards based on region.
Installation
You can install this package via Composer.
$ composer require wfx/giftbit
Set the following Environment Variable in .env file.
GIFTBIT_ENDPOINT=[api-testbed.giftbit.com/papi/v1](https://api-testbed.giftbit.com/papi/v1) GIFTBIT_CURRENCY=CAD GIFTBIT_DEBUG=true/false GIFTBIT_ACCESS_KEY=GIFTBIT_ACCESS_KEY
The package will register itself automatically. Optionally publish config file of package
$ php artisan vendor:publish --provider="wfx\Giftbit\GiftbitServiceProvider"
Usage
To get particular region from the regions list
$giftbitRegion = Giftbit::make()->getRegions('Canada');
To get brands based on region from the brands list
$giftbitBrands = Giftbit::make()->getBrands($giftbitRegion);
To Create Giftbit Gift Card
$giftbit = Giftbit::make()->createCampaign($value);
Available Methods
To change client configuration dynamic. If you pass only $key or other parameter will takes value from default config.
$giftbit = Giftbit::make($key, $endpoint, $currency)->createCampaign($value);
Change log
Please see the changelog for more information on what has changed recently.
Security
If you discover any security related issues, please email varun@webfixerr.com instead of using the issue tracker.
Credits
License
MIT. Please see the license file for more information.
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-08-11