libero / xml-validator
This package is abandoned and no longer maintained.
No replacement package was suggested.
XML validator
v0.2.1
2019-03-06 13:35 UTC
Requires
- php: ^7.2
- ext-dom: *
- ext-libxml: *
Requires (Dev)
- ext-xsl: *
- cpliakas/git-wrapper: ^2.0
- libero/coding-standard: ^0.3
- phpstan/phpstan: ^0.10
- phpstan/phpstan-phpunit: ^0.10
- phpunit/phpunit: ^7.2
- symfony/filesystem: ^4.0
Suggests
- ext-xsl: To use SchematronValidator
README
This is a library for validating XML against one or more schemas.
Getting started
Using Composer you can install the coding standard into your project:
composer require libero/xml-validator
The core of this library is the XmlValidator
interface, which can be used to test the validity of a DOMDocument
.
Implementations
CompositeValidator
Runs multiple validators and combines their results.
DtdValidator
Validates against the Document Type Definition (DTD).
DummyValidator
Always produces the configured result. Useful for testing.
RelaxNgValidator
Validates against a RELAX NG schema.
SchematronValidator
Validates against Schematron (using XSLT 1.0), which may be embedded inside a RELAX NG schema or an XML Schema Definition.
XmlSchemaValidator
Validates against an XML Schema Definition (XSD).
Getting help
- Report a bug or request a feature on GitHub.
- Ask a question on the Libero Community Slack.
- Read the code of conduct.