cmaymard / php-xml-schema
Provides support to parse and create an in-memory representation of a XML Schema document.
dev-master
2020-04-19 12:00 UTC
Requires
- php: >=7.3
- ext-gmp: *
Requires (Dev)
- phpspec/prophecy-phpunit: ^2
- phpunit/phpunit: 9.1.*
This package is auto-updated.
Last update: 2024-11-19 21:59:40 UTC
README
Provides support to parse and create an in-memory representation of a XML Schema document.
Installation
composer require cmaymard/php-xml-schema
Usage
Parse a XML Schema 1.0 document
<?php use PhpXmlSchema\Dom\Parser; $src = \file_get_contents('schema.xsd'); $parser = new Parser(); // $schema is an instance of PhpXmlSchema\Dom\SchemaElement. $schema = $parser->parse($src);
See the documentation.