Download the PHP package gifty/gifty-php without Composer
On this page you can find all versions of the php package gifty/gifty-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gifty/gifty-php
More information about gifty/gifty-php
Files in gifty/gifty-php
Package gifty-php
Short Description PHP library for interacting with the Gifty API.
License MIT
Homepage https://gifty.nl
Informations about the package gifty-php
Gifty PHP SDK
PHP library for interacting with the Gifty API. This SDK is using the public Gifty API and enables you to:
- Accept gift cards in your webshop
- Redeem and issue gift cards in your POS-system
- Retrieve gift card packages
- Retrieve store locations
Requirements
- PHP 8.0 and later
- A valid API Key, that can be generated in your Gifty dashboard
Installation
The SDK is published on Packagist and can be installed using Composer.
composer require gifty/gifty-php
Getting Started
Before starting, it is recommended to read the documentation of the underlying Gifty API where all possible options to include are described.
Initializing the client and performing an API call is done as follows.
You can also pass additional headers to the client.
Retrieve Locations
Retrieve Packages
Retrieve a Package
Retrieve a Gift Card
Issue a Gift Card
Redeem a Gift Card
Extend a Gift Card
Retrieve all Transactions
Retrieve all Transactions filtered by gift card ID
Retrieve a Transaction
Capture a Transaction
Release a Transaction
Development
Clone the Git repository, so you have a local working copy.
git clone https://github.com/giftyhq/gifty-php
Install required (developing) dependencies using Composer.
composer install
Run and create PHPUnit tests for your modifications.
composer test
Make sure you follow the PSR12 coding standards.
composer phpstan
& composer phpcs
All versions of gifty-php with dependencies
ext-json Version *
ext-curl Version *
psr/http-message Version ^2.0