PHPackages                             i-complex/xsd-reader - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. i-complex/xsd-reader

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

i-complex/xsd-reader
====================

Read any XML Schema (XSD) programmatically with PHP

0.1.0(2y ago)0791MITPHPPHP ^7.1|^8.0

Since Apr 18Pushed 2y agoCompare

[ Source](https://github.com/i-complex/xsd-reader)[ Packagist](https://packagist.org/packages/i-complex/xsd-reader)[ Fund](https://www.goetas.com/)[ GitHub Sponsors](https://github.com/goetas)[ RSS](/packages/i-complex-xsd-reader/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (5)Versions (6)Used By (1)

[![Build Status](https://camo.githubusercontent.com/10cdc7b808e74879e5bda3e94fe6f5587f09cdab2ac1aa9a1769863ecabe14ce/68747470733a2f2f7472617669732d63692e6f72672f676f657461732d77656273657276696365732f7873642d7265616465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/goetas-webservices/xsd-reader)[![Code Coverage](https://camo.githubusercontent.com/049afac797e91889f8296bf08b9537e63f95d1434440112ba911186824aa9b26/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f676f657461732d77656273657276696365732f7873642d7265616465722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/goetas-webservices/xsd-reader/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/07549882bb2a5cb024a8ab6db45e3a2b31a1b5d7f57ba008d7111968517dc969/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f676f657461732d77656273657276696365732f7873642d7265616465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/goetas-webservices/xsd-reader/?branch=master)

PHP XSD Reader
==============

[](#php-xsd-reader)

Read any [XML Schema](http://www.w3.org/XML/Schema) (XSD) programmatically with PHP.

Installation
------------

[](#installation)

The recommended way to install the `xsd-reader` via [Composer](https://getcomposer.org/):

```
composer require 'goetas-webservices/xsd-reader'
```

Getting started
---------------

[](#getting-started)

```
use GoetasWebservices\XML\XSDReader\SchemaReader;

$reader = new SchemaReader();
$schema = $reader->readFile("http://www.example.com/exaple.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
----

[](#note)

The code in this project is provided under the [MIT](https://opensource.org/licenses/MIT) license. For professional support contact or visit

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 59.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1808 days

Total

2

Last Release

814d ago

PHP version history (2 changes)0.2.x-devPHP &gt;=5.4.0

0.1.0PHP ^7.1|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/482db78116c183996f2a0aa2a5f4340c114c93c77791aa2749ab94b2ef7dd722?d=identicon)[belkinai](/maintainers/belkinai)

---

Top Contributors

[![goetas](https://avatars.githubusercontent.com/u/776743?v=4)](https://github.com/goetas "goetas (133 commits)")[![SignpostMarv](https://avatars.githubusercontent.com/u/304403?v=4)](https://github.com/SignpostMarv "SignpostMarv (45 commits)")[![RSully](https://avatars.githubusercontent.com/u/185004?v=4)](https://github.com/RSully "RSully (12 commits)")[![Guite](https://avatars.githubusercontent.com/u/277531?v=4)](https://github.com/Guite "Guite (5 commits)")[![holtkamp](https://avatars.githubusercontent.com/u/776405?v=4)](https://github.com/holtkamp "holtkamp (4 commits)")[![davidsonalencar](https://avatars.githubusercontent.com/u/3989763?v=4)](https://github.com/davidsonalencar "davidsonalencar (4 commits)")[![Toilal](https://avatars.githubusercontent.com/u/1165758?v=4)](https://github.com/Toilal "Toilal (4 commits)")[![vyacheslav-prog](https://avatars.githubusercontent.com/u/53825101?v=4)](https://github.com/vyacheslav-prog "vyacheslav-prog (4 commits)")[![rvdbogerd](https://avatars.githubusercontent.com/u/1301320?v=4)](https://github.com/rvdbogerd "rvdbogerd (3 commits)")[![cebe](https://avatars.githubusercontent.com/u/189796?v=4)](https://github.com/cebe "cebe (3 commits)")[![allcode](https://avatars.githubusercontent.com/u/2942120?v=4)](https://github.com/allcode "allcode (2 commits)")[![veewee](https://avatars.githubusercontent.com/u/1618158?v=4)](https://github.com/veewee "veewee (2 commits)")[![zambodaniel](https://avatars.githubusercontent.com/u/3462880?v=4)](https://github.com/zambodaniel "zambodaniel (1 commits)")[![mgrundkoetter](https://avatars.githubusercontent.com/u/1526725?v=4)](https://github.com/mgrundkoetter "mgrundkoetter (1 commits)")[![toooni](https://avatars.githubusercontent.com/u/241080?v=4)](https://github.com/toooni "toooni (1 commits)")

---

Tags

phpxmlparserxsdxmlschema

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/i-complex-xsd-reader/health.svg)

```
[![Health](https://phpackages.com/badges/i-complex-xsd-reader/health.svg)](https://phpackages.com/packages/i-complex-xsd-reader)
```

###  Alternatives

[goetas-webservices/xsd-reader

Read any XML Schema (XSD) programmatically with PHP

625.2M22](/packages/goetas-webservices-xsd-reader)[goetas-webservices/xsd2php

Convert XSD (XML Schema) definitions into PHP classes and JMS metadata

2401.7M43](/packages/goetas-webservices-xsd2php)[goetas-webservices/xsd2php-runtime

Convert XSD (XML Schema) definitions into PHP classes

4912.6M43](/packages/goetas-webservices-xsd2php-runtime)[orchestra/parser

XML Document Parser for Laravel and PHP

4671.8M7](/packages/orchestra-parser)[corveda/php-sandbox

A PHP library that can be used to run PHP code in a sandboxed environment

23796.2k2](/packages/corveda-php-sandbox)[goetas/xsd2php-runtime

Convert XSD (XML Schema) definitions into PHP classes

493.3k](/packages/goetas-xsd2php-runtime)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
