sidvanvliet / laravel-gifty-vouchers
An easy-to-use wrapper to check the balance of Gifty.nl vouchers.
1.0.1
2020-07-10 21:42 UTC
Requires
- php: ^7.1
- guzzlehttp/guzzle: ^6.3
- illuminate/support: ^5.6|^6.0|^7.0|^8.0
Requires (Dev)
- orchestra/testbench: ^4.0
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2025-04-11 16:16:37 UTC
README
This package offers an easy to use Laravel wrapper for Gifty.nl gift cards / vouchers using the publicly available balance checker API.
Installation
You can install the package via composer:
composer require sidvanvliet/laravel-gifty-vouchers
Usage
$voucher = new Sidvanvliet\LaravelGiftyVouchers\Voucher("JW96–S75S-9FV8–L9S4");
Available functions
Function | Return type | Description |
---|---|---|
isValid() | bool | Returns whether or not the voucher is valid |
balance() | float | Returns the amount of credit on the voucher |
currency() | ?string | Returns the currency (e.x. EUR) |
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email sid@gifty.nl instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.