alengo / alengo-voucher-bundle
Voucher Bundle
Installs: 44
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:sulu-bundle
Requires
- php: ^8.1
- sulu/sulu: ^2.5
- symfony/config: ^6.0 || ^7.0
- symfony/dependency-injection: ^6.0 || ^7.0
- symfony/framework-bundle: ^6.0 || ^7.0
- symfony/http-foundation: ^6.0 || ^7.0
- symfony/http-kernel: ^6.0 || ^7.0
- symfony/serializer: ^6.0 || ^7.0
- symfony/twig-bundle: ^6.0 || ^7.0
Requires (Dev)
- handcraftedinthealps/zendsearch: ^2.0
- jackalope/jackalope-doctrine-dbal: ^1.3.4 || ^2.0
- php-cs-fixer/shim: ^3.9
- phpstan/extension-installer: ^1.2
- phpstan/phpstan: ^1.9
- phpstan/phpstan-doctrine: ^1.3
- phpstan/phpstan-symfony: ^1.2
- phpunit/phpunit: ^8.5 || ^9.5
- rector/rector: ^1.0.3
- sulu/sulu-rector: ^1.0.0
- symfony/browser-kit: ^6.0 || ^7.0
- symfony/console: ^6.0 || ^7.0
- symfony/dotenv: ^6.0 || ^7.0
- symfony/error-handler: ^6.0 || ^7.0
- symfony/monolog-bundle: ^3.1
README
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