tiime/cross-industry-invoice 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tiime/cross-industry-invoice

最新稳定版本:0.3.11.1

Composer 安装命令:

composer require tiime/cross-industry-invoice

包简介

README 文档

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')
    }
}

统计信息

  • 总下载量: 232.64k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 0
  • Forks: 1
  • 开发语言: XSLT

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-06-06