linderp / sulu-swiss-qr-bill-bundle
Swiss QR Bill generator for Sulu CMS
Installs: 21
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:symfony-bundle
pkg:composer/linderp/sulu-swiss-qr-bill-bundle
Requires
- php: ^8.2
- jackalope/jackalope-doctrine-dbal: ^2.0
- sprain/swiss-qr-bill: ^5.2.0
- sulu/sulu: ^2.6
- symfony/config: ^6.2 | ^7.0
- symfony/dependency-injection: ^6.2 | ^7.0
- symfony/framework-bundle: ^6.2 | ^7.0
- symfony/http-foundation: ^6.2 | ^7.0
- symfony/http-kernel: ^6.2 | ^7.0
- symfony/intl: ^6.2 | ^7.0
- symfony/security-core: ^6.3 | ^7.0
- symfony/translation: ^6.2 | ^7.0
- tecnickcom/tc-lib-pdf: ^8.4.0
- tecnickcom/tcpdf: ^6.10.1
README
Sulu bundle that integrates swiss qr bill generation for saved contacts. Implementation of the php package schoero/swissqrbill
Installation
This bundle requires PHP 8.2 and Sulu 2.6
- Open a command console, enter your project directory and run:
composer require linderp/sulu-swiss-qr-bill-bundle
If you're not using Symfony Flex, you'll also need to add the bundle in your config/bundles.php file:
return [ //... Linderp\SuluSwissQRBillBundle\SuluSwissQRBillBundle::class => ['all' => true], ];
- Register the new routes by adding the following to your
routes_admin.yaml:
SuluIndexNowBundle: resource: "@SuluSwissQRBillBundle/Resources/config/routes_admin.yml"
- Add the file
config/packages/sulu_swiss_qr_bill.yamlwith the following configuration and replace #your key here with your actual key:
sulu_swiss_qr_bill: iban: 'CH5604835012345678009' name: 'Example' street: 'Nowherestreet 23' postalCode: 9999 city: 'Somewhere'
- Reference the frontend code by adding the following to your
assets/admin/package.json:
"dependencies": { "sulu-swiss-qr-bill-bundle": "file:../../vendor/linderp/sulu-swiss-qr-bill-bundle/src/Resources/js" }
- Import the frontend code by adding the following to your
assets/admin/app.js:
import "sulu-swiss-qr-bill-bundle";
- Build the admin UI:
cd assets/admin
npm run build