Skip to content

sidvanvliet/laravel-gifty-vouchers

Repository files navigation

An easy to use Laravel wrapper for Gifty vouchers

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.

About

An easy to use Laravel wrapper for Gifty vouchers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages