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

This package is auto-updated.

Last update: 2024-05-11 14:07:34 UTC


README

Latest Version on Packagist Build Status Quality Score Total Downloads

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.