Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Ubl Validator

Ubl Validator Laravel Package

greenter/ubl-validator

Validate UBL (OASIS Universal Business Language) XML documents against official XSD schemas. Automatically resolves the UBL version, locates the matching schema, and reports validation errors. Supports custom XSD directories for other UBL versions.

View on GitHub
Deep Wiki
Context7

greenter/ubl-validator is a PHP library for validating XML documents against OASIS Universal Business Language (UBL) schemas. It reads the <cbc:UBLVersionID> from your document, locates the matching XSD file, and runs schemaValidate to confirm the XML is well-formed and compliant—ideal for SUNAT electronic invoicing in Peru.

use Greenter\Ubl\UblValidator;

$validator = new UblValidator();
echo $validator->isValid($xml) ? 'Success!!!' : $validator->getError();
  • Automatic version detection from UBLVersionID
  • Simple isValid() API with readable error messages
  • Custom XSD directories via UblPathResolver
  • Supports multiple UBL versions (2.1, 2.2, …)
  • Installable with Composer from Packagist
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hsluv/hsluv
seampact/codegen
seampact/hooks
seampact/ir
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support