tiime / cross-industry-invoice
Installs: 229 217
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 0
Forks: 1
Open Issues: 3
Language:XSLT
pkg:composer/tiime/cross-industry-invoice
Requires
- php: >=8.3
- ext-dom: *
- ext-libxml: *
- tiime/en-16931: ^0.10.0
- twig/intl-extra: ^3.15
- twig/twig: ^3.15
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.16
- phpstan/phpstan: ^2.0
- phpunit/phpunit: ^12.0
- dev-main
- 0.3.11.1
- 0.3.11
- 0.3.10
- 0.3.9
- 0.3.8
- 0.3.7
- 0.3.6
- 0.3.5
- 0.3.4
- 0.3.3
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- dev-chore/update-en16931-version-configuration
- dev-fix/add-flux1-profile
- dev-feat/add-flux1-profile
- dev-ci
- dev-update-schematron
- dev-feat-update-xsd
- dev-improvements-28-03-2025
This package is auto-updated.
Last update: 2025-10-29 10:49:21 UTC
README
How to add this library in Symfony ?
Download this library :
composer require tiime/cross-industry-invoice
If you want to use templates which are available in src/Resources/views/ folder, you will need to add this configuration :
twig: # ... paths: '%kernel.project_dir%/vendor/tiime/cross-industry-invoice/src/Resources/views/': 'TiimeCII'
If you want to use templates from this library, you will also need to download twig/extra-bundle package :
composer require twig/extra-bundle
In config/services.yaml, add this configuration :
Tiime\CrossIndustryInvoice\Renderer\TwigRenderer: arguments: $environment: '@twig' Tiime\CrossIndustryInvoice\Renderer\CrossIndustryInvoiceRendererInterface: '@Tiime\CrossIndustryInvoice\Renderer\TwigRenderer'
How to use it ?
use Tiime\CrossIndustryInvoice\EN16931\CrossIndustryInvoice; use Tiime\CrossIndustryInvoice\Renderer\CrossIndustryInvoiceRendererInterface; class MyService { public function __construct(private readonly CrossIndustryInvoiceRendererInterface $renderer) { } public function doSomething() { // Create CrossIndustryInvoice object with needed parameters $crossIndustryInvoice = new CrossIndustryInvoice(...); $this->renderer->render($crossIndustryInvoice, '@TiimeCII/en16931_invoice.html.twig') } }