vineethkrishnan/xrechnung-kit-core
Composer 安装命令:
composer require vineethkrishnan/xrechnung-kit-core
包简介
EN 16931 / XRechnung 3.0 compliant e-invoice generator and validator. Framework-agnostic core.
README 文档
README
EN 16931 / XRechnung 3.0 compliant e-invoice generator and validator for PHP. Framework-agnostic core.
This is the framework-agnostic core of xrechnung-kit. It turns a typed PHP value object describing an invoice into a KoSIT-strict valid XRechnung 3.0 / EN 16931 XML document, validates the output in memory before writing to disk, and quarantines invalid output.
This package is intentionally minimal. It has no framework dependencies and no runtime network calls. Framework adapters (Laravel, Symfony, CakePHP, Laminas), platform integrations (TYPO3, Shopware 6, WordPress / WooCommerce, Contenido CMS), and the optional KoSIT Schematron bundle are published as separate packages from the same monorepo.
Installation
composer require vinelabs-de/xrechnung-kit
Optional KoSIT Schematron validation:
composer require --dev vineethkrishnan/xrechnung-kit-kosit-bundle
Framework adapters:
composer require vineethkrishnan/xrechnung-kit-laravel composer require vineethkrishnan/xrechnung-kit-symfony composer require vineethkrishnan/xrechnung-kit-cakephp composer require vineethkrishnan/xrechnung-kit-laminas
Platform integrations (CMS and e-commerce):
composer require vineethkrishnan/xrechnung-kit-typo3 composer require vineethkrishnan/xrechnung-kit-shopware composer require vineethkrishnan/xrechnung-kit-wordpress composer require vineethkrishnan/xrechnung-kit-contenido
Quick start
use XrechnungKit\Builder\XRechnungBuilder; use XrechnungKit\XRechnungGenerator; use XrechnungKit\XRechnungValidator; $mappingData = (new MyInvoiceMapper($invoice, $customer))->produce(); $entity = XRechnungBuilder::buildEntity($mappingData); $generator = new XRechnungGenerator($entity); $path = $generator->generateXRechnung('/path/to/Invoice_RE-1.xml'); $validator = new XRechnungValidator(); $ok = $validator->validate($path);
The generator runs UBL XSD validation in memory before writing. Invalid output lands at *_invalid.xml and triggers a deduplicated operator alert.
Document classes supported:
- Standard invoice (UNTDID 380)
- Partial invoice / deposit / Anzahlung (UNTDID 326)
- Caution / security deposit
- Credit note / cancellation (UNTDID 381)
- Deposit cancellation
Requirements
- PHP 8.1, 8.2, 8.3, or 8.4
ext-libxml,ext-dom,ext-mbstring- Optional
psr/log - Java 11+ for KoSIT Schematron validation (only when running
validate-kosit)
Repository
Source, issues, docs, and PRs live in the monorepo: vinelabs-de/xrechnung-kit.
This repo (vinelabs-de/xrechnung-kit) is an auto-generated split of the monorepo's core/ subtree, published for Packagist. Do not open PRs here; open them against the monorepo.
- Documentation: xrechnung-kit.vineethnk.in
- API reference: overview and generated per-class reference
- Issues: github.com/vinelabs-de/xrechnung-kit/issues
- Contributing: CONTRIBUTING.md
- Security disclosure: SECURITY.md
License
MIT. Bundled UBL XSDs and KoSIT scenarios retain their original licenses; see LICENSE-third-party.md.
Trademark notice
"XRechnung" is a German federal e-invoicing standard maintained by KoSIT (Koordinierungsstelle fuer IT-Standards). xrechnung-kit is an independent open source library and is neither affiliated with nor endorsed by KoSIT or any German government agency.
vineethkrishnan/xrechnung-kit-core 适用场景与选型建议
vineethkrishnan/xrechnung-kit-core 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 15 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 05 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「invoicing」 「ubl」 「germany」 「e-invoicing」 「peppol」 「xrechnung」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 vineethkrishnan/xrechnung-kit-core 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 vineethkrishnan/xrechnung-kit-core 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 vineethkrishnan/xrechnung-kit-core 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A PHP wrapper for UBL invoices
An unofficial PHP library for generating ZATCA Fatoora e-invoices. This library facilitates the creation of compliant e-invoices, QR Codes, and certificates, as well as the submission of e-invoices to ZATCA's servers. It provides developers with an easy-to-use, customizable, and robust toolkit to in
Space invoices PHP sdk
Peppyrus PHP API client
WeFact API client library for PHP.
A PHP wrapper for UBL invoices
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 52
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-10