alengo/alengo-voucher-bundle

Voucher Bundle

Maintainers

👁 alengodev

Package info

github.com/alengodev/alengoVoucherBundle

Type:sulu-bundle

pkg:composer/alengo/alengo-voucher-bundle

Statistics

Installs: 58

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

0.4.3 2024-11-26 09:44 UTC

Requires

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 938c7df98f0b11ae2b97b6b558ee7e2244bab682

  • Alexander Huber-De Monte

contententitysulusulucms

This package is auto-updated.

Last update: 2026-06-26 13:39:42 UTC


README

👁 GitHub license
👁 GitHub tag (latest SemVer)
👁 Sulu compatibility

Requirements

  • PHP 8.1
  • Symfony >=6.0

Install the bundle

Execute the following composer command

composer require alengo/alengo-voucher-bundle

Enable the bundle

Enable the bundle by adding it to the list of registered bundles in the config/bundles.php file of your project:

return [
 /* ... */
 Alengo\Bundle\AlengoVoucherBundle\AlengoVoucherBundle::class => ['all' => true],
];
bin/console do:sch:up --force

Configure the Bundle

Set the following config in your routes_admin.yaml

app.voucher_categories_api:
 type: rest
 resource: Alengo\Bundle\AlengoVoucherBundle\Controller\Admin\VoucherCategoriesController
 prefix: /admin/api
 name_prefix: app.

app.voucher_orders_api:
 type: rest
 resource: Alengo\Bundle\AlengoVoucherBundle\Controller\Admin\VoucherOrdersController
 prefix: /admin/api
 name_prefix: app.

Define if you want to query vouchers per webspace /config/packages/alengo_voucher.yaml

 alengo_voucher:
 per_webspace: true