goetas-webservices / xsd-reader
Read any XML Schema (XSD) programmatically with PHP
Fund package maintenance!
goetas
Patreon
www.goetas.com
Installs: 3 646 788
Dependents: 15
Suggesters: 0
Security: 0
Stars: 61
Watchers: 5
Forks: 43
Open Issues: 11
Requires
- php: ^8.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.14
- phpstan/phpstan: ^1.9
- phpunit/phpunit: ^9.6
- sebastian/phpcpd: ^6.0
- vimeo/psalm: ^5.6
- 0.4.11
- 0.4.10
- 0.4.9
- 0.4.8
- 0.4.7
- 0.4.6
- 0.4.5
- 0.4.4
- 0.4.3
- 0.4.2
- 0.4.1
- 0.4.0
- dev-master / 0.3.x-dev
- 0.3.13
- 0.3.12
- 0.3.11
- 0.3.10
- 0.3.9
- 0.3.8
- v0.3.7
- v0.3.6
- v0.3.5
- v0.3.4
- v0.3.3
- v0.3.2
- v0.3.1
- v0.3.0
- 0.2.x-dev
- v0.2.8
- v0.2.7
- v0.2.6
- v0.2.5
- v0.2.1
- v0.2.0
- v0.1.2
- v0.1.1
- v0.1.0
- dev-goetas-patch-1
- dev-cs-fix
- dev-issue-4
This package is auto-updated.
Last update: 2025-09-09 13:12:01 UTC
README
PHP XSD Reader
Read any XML Schema (XSD) programmatically with PHP.
Installation
The recommended way to install the xsd-reader
via Composer:
composer require 'goetas-webservices/xsd-reader'
Getting started
use GoetasWebservices\XML\XSDReader\SchemaReader; $reader = new SchemaReader(); $schema = $reader->readFile("http://www.example.com/example.xsd"); // $schema is instance of GoetasWebservices\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