PHPackages                             setono/sylius-gift-card-plugin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. setono/sylius-gift-card-plugin

ActiveSylius-plugin

setono/sylius-gift-card-plugin
==============================

Gift card plugin for Sylius

v0.12.0(11mo ago)51175.5k↓10.6%41[16 issues](https://github.com/Setono/SyliusGiftCardPlugin/issues)[4 PRs](https://github.com/Setono/SyliusGiftCardPlugin/pulls)1MITPHPPHP &gt;=8.1CI failing

Since Sep 30Pushed 11mo ago5 watchersCompare

[ Source](https://github.com/Setono/SyliusGiftCardPlugin)[ Packagist](https://packagist.org/packages/setono/sylius-gift-card-plugin)[ RSS](/packages/setono-sylius-gift-card-plugin/feed)WikiDiscussions 0.12.x Synced 1mo ago

READMEChangelog (10)Dependencies (74)Versions (61)Used By (1)

Sylius Gift Card Plugin
=======================

[](#sylius-gift-card-plugin)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a971c76b585f1819c2708166970b4d5b7d72cfbc627d6df70b6512705ddcab5f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7365746f6e6f2f73796c6975732d676966742d636172642d706c7567696e2e737667)](https://packagist.org/packages/setono/sylius-gift-card-plugin)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE)[![Build Status](https://github.com/Setono/SyliusGiftCardPlugin/workflows/build/badge.svg)](https://github.com/Setono/SyliusGiftCardPlugin/actions)

Add gift card functionality to your store:

- Buy gift cards
- Use gift cards to purchase products
- See the balance of a gift card by looking up the gift card code

The administrator will have access to a dashboard showing the total outstanding balance of gift cards which can be used for auditing.

Screenshots
-----------

[](#screenshots)

▶▶ [Skip screenshots and go to installation](#Installation)

[![Screenshot showing admin menu and index](docs/images/admin-menu.png)](docs/images/admin-menu.png)

[![Screenshot showing gift card admin create page](docs/images/admin-gift-card-create.png)](docs/images/admin-gift-card-create.png)

Api platform support
--------------------

[](#api-platform-support)

Everything related to Gift Card can be done via API. Whether it is admin or shop actions

Installation
------------

[](#installation)

### Require plugin with composer:

[](#require-plugin-with-composer)

```
$ composer require setono/sylius-gift-card-plugin
```

### Import configuration:

[](#import-configuration)

```
# config/packages/setono_sylius_gift_card.yaml
imports:
    # ...
    - { resource: "@SetonoSyliusGiftCardPlugin/Resources/config/app/config.yaml" }
```

### (Optional) Import fixtures

[](#optional-import-fixtures)

If you wish to have some gift cards to play with in your application during development.

```
# config/packages/setono_sylius_gift_card.yaml
imports:
    # ...
    - { resource: "@SetonoSyliusGiftCardPlugin/Resources/config/app/fixtures.yaml" }
```

### Import routing:

[](#import-routing)

```
# config/routes.yaml
setono_sylius_gift_card:
    resource: "@SetonoSyliusGiftCardPlugin/Resources/config/routes.yaml"
```

or if your app doesn't use locales:

```
# config/routes.yaml
setono_sylius_gift_card:
    resource: "@SetonoSyliusGiftCardPlugin/Resources/config/routes_no_locale.yaml"
```

### Add plugin class to your `bundles.php`:

[](#add-plugin-class-to-your-bundlesphp)

Make sure you add it before `SyliusGridBundle`, otherwise you'll get `You have requested a non-existent parameter "setono_sylius_gift_card.model.gift_card.class".` exception.

```
