stormcode / xsd-reader-laravel-cached
Read any XML Schema (XSD) programmatically with PHP
Fund package maintenance!
goetas
Patreon
www.goetas.com
Requires
- php: ^8.1
- illuminate/database: ^9.0
- illuminate/support: ^9.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.10
- phpunit/phpunit: ^7.0|^8.0|^9.0
- sebastian/phpcpd: ^4.0|^5.0|^6.0
- vimeo/psalm: ^3.14
This package is auto-updated.
Last update: 2024-10-22 03:50:24 UTC
README
Read any XML Schema (XSD) programmatically with PHP.
Installation
The recommended way to install the xsd-reader
via Composer:
composer require 'stormcode/xsd-reader-laravel-cached'
Getting started
use CollectHouse\XML\XSDReader\SchemaReader; $reader = new SchemaReader(); $schema = $reader->readFile("http://www.example.com/exaple.xsd"); // $schema is instance of CollectHouse\XML\XSDReader\Schema\Schema; // Now you can navigate the entire schema structure foreach ($schema->getSchemas() as $innerSchema){ } foreach ($schema->getTypes() as $type){ } foreach ($schema->getElements() as $element){ } foreach ($schema->getGroups() as $group){ } foreach ($schema->getAttributes() as $attr){ } foreach ($schema->getAttributeGroups() as $attrGroup){ }
Note
The code in this project is provided under the MIT license. For professional support contact goetas@gmail.com or visit https://www.goetas.com