PHPackages                             ryankubanempire/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ryankubanempire/xsd-reader

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ryankubanempire/xsd-reader
==========================

Read any XML Schema (XSD) programmatically with PHP. This is a fork of goetas-webservices/xsd-reader

022PHP

Since Jan 13Pushed 1y agoCompare

[ Source](https://github.com/ryankubanempire/xsd-reader)[ Packagist](https://packagist.org/packages/ryankubanempire/xsd-reader)[ RSS](/packages/ryankubanempire-xsd-reader/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

[![Build status](https://github.com/goetas-webservices/xsd-reader/workflows/Build%20and%20test/badge.svg)](https://github.com/goetas-webservices/xsd-reader/actions?query=workflow%3A%22Build+and+test%22)[![Code Coverage Badge](./coverage_badge.svg)](./coverage_badge.svg)

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/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
----

[](#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

18

—

LowBetter than 8% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/dd65137134b96f9144f822f6323614a082fa19b0f19ab68f7821c7ba930ab996?d=identicon)[ryankubanempire](/maintainers/ryankubanempire)

---

Top Contributors

[![goetas](https://avatars.githubusercontent.com/u/776743?v=4)](https://github.com/goetas "goetas (142 commits)")[![Guite](https://avatars.githubusercontent.com/u/277531?v=4)](https://github.com/Guite "Guite (71 commits)")[![SignpostMarv](https://avatars.githubusercontent.com/u/304403?v=4)](https://github.com/SignpostMarv "SignpostMarv (45 commits)")[![veewee](https://avatars.githubusercontent.com/u/1618158?v=4)](https://github.com/veewee "veewee (12 commits)")[![RSully](https://avatars.githubusercontent.com/u/185004?v=4)](https://github.com/RSully "RSully (12 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (11 commits)")[![davidsonalencar](https://avatars.githubusercontent.com/u/3989763?v=4)](https://github.com/davidsonalencar "davidsonalencar (4 commits)")[![marckoehler](https://avatars.githubusercontent.com/u/96128291?v=4)](https://github.com/marckoehler "marckoehler (4 commits)")[![holtkamp](https://avatars.githubusercontent.com/u/776405?v=4)](https://github.com/holtkamp "holtkamp (4 commits)")[![Toilal](https://avatars.githubusercontent.com/u/1165758?v=4)](https://github.com/Toilal "Toilal (4 commits)")[![cebe](https://avatars.githubusercontent.com/u/189796?v=4)](https://github.com/cebe "cebe (3 commits)")[![rvdbogerd](https://avatars.githubusercontent.com/u/1301320?v=4)](https://github.com/rvdbogerd "rvdbogerd (3 commits)")[![allcode](https://avatars.githubusercontent.com/u/2942120?v=4)](https://github.com/allcode "allcode (2 commits)")[![zambodaniel](https://avatars.githubusercontent.com/u/3462880?v=4)](https://github.com/zambodaniel "zambodaniel (1 commits)")[![jbuncle](https://avatars.githubusercontent.com/u/11473689?v=4)](https://github.com/jbuncle "jbuncle (1 commits)")[![mgrundkoetter](https://avatars.githubusercontent.com/u/1526725?v=4)](https://github.com/mgrundkoetter "mgrundkoetter (1 commits)")[![ryankubanempire](https://avatars.githubusercontent.com/u/107972111?v=4)](https://github.com/ryankubanempire "ryankubanempire (1 commits)")[![toooni](https://avatars.githubusercontent.com/u/241080?v=4)](https://github.com/toooni "toooni (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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