承接 michaeld555/nfe-parser 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

michaeld555/nfe-parser

最新稳定版本:v1.0.3

Composer 安装命令:

composer require michaeld555/nfe-parser

包简介

A simple library to create fiscal danfe files

README 文档

README

Installation

Run this composer command in your application:

composer require michaeld555/nfe-parser

Using

You can create a Danfe instance and pass the xml file path and output danfe file path. This will generate your document and save in your passed path.

    use Michaeld555\Danfe;

    Danfe::simple('path_to_file/nfe.xml', 'path_to_file/danfe.pdf');

    if (file_exists('path_to_file/danfe.pdf')) {

        echo "the file was generated successfully";

    } else {

        echo "an error occurred during the file generation";

    }

If you want to add your logo to the document, you can use the custom method passing the logo path.

    Danfe::custom('path_to_file/nfe.xml', 'path_to_file/danfe.pdf', 'path_to_logo/logo.png');

Notes:

  • If you are using a linux system, make sure you have python3 and the package brazilfiscalreport installed on your system, and that your application is enabled to execute customs python scripts

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: Python

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-31