wfx / giftbit
Laravel Package for Giftbit Gift Cards
Requires
- illuminate/support: ~5|^6.0|^7.0|^8.0|^9.0|^10.0
Requires (Dev)
- mockery/mockery: ^1.1
- orchestra/testbench: ~3.0
- phpunit/phpunit: ~7.0|~8.0
- sempro/phpunit-pretty-print: ^1.0
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.