PHPackages                             shadiakiki1986/xsd-to-php - 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. shadiakiki1986/xsd-to-php

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

shadiakiki1986/xsd-to-php
=========================

Legko XML: compile XSD schema to PHP, XML marshalling/unmashalling http://mikebevz.com/xsd-to-php-tool/

0.1.0(9y ago)02601PHP

Since Jan 31Pushed 9y ago1 watchersCompare

[ Source](https://github.com/shadiakiki1986/XSD-to-PHP)[ Packagist](https://packagist.org/packages/shadiakiki1986/xsd-to-php)[ RSS](/packages/shadiakiki1986-xsd-to-php/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (4)Versions (2)Used By (1)

```
Legko XML

[![Build Status](https://travis-ci.org/shadiakiki1986/XSD-to-PHP.svg?branch=master)](http://travis-ci.org/shadiakiki1986/XSD-to-PHP)

!!!!
Note: We are constantly looking for user stories on how they used LegkoXML (XSD2PHP).
If you would like to help to our project, please send your story about how you have used
LegkoXML in your project. Email is myb (at) mikebevz (dot) com.
!!!!

See PhpDocs at http://legkoxml.org/docs
Discussion Group http://groups.google.com/group/legkoxml-support

With the present library you are able to compile PHP binding from XML Schema files,
and consequently, bind XML files to PHP models (unmarshalling), and save PHP bindings
as XML (marshalling).

Installation

 # Enable the php5 XSL extension: [sudo] apt-get install php5-xsl
 # composer require shadiakiki1986/xsd-to-php
 # composer install

Testing

 # git clone ...
 #composer run-script test

Versions history

Current release
 # Fixed #24: Fix problem with WSDL generation - soap:operation must not have any child

0.0.5 Major refactoring
 # Fixed #17: Array of objects is not converted to XML correctly
 # Implemented #12: Feature: WSDL generator utilizing existing mapping in classes
 # Added NullLogger - mock for logger. It will be used later for #18: Feature: Logger injection
 # #13 Command line tool: Initial version developed, compile-schema target only.
 # #8 Create facade class: Initial version implemented, only compileSchema method works. (See LegkoXml.php)

0.0.4 Issue #12. WSDL autodiscovery
 # Fixed #10: Directory structure do not correspond to PHP namespaces
 # Fixed #5: Add debug output option to XSD2PHP
 # Fixed #9: Generated WSDL tested with Zend_Soap
 # WSDL tested with Apache CXF

0.0.3 XML generation refactored
 # namespaces generated as ns0 ... nsX
 # Fixed #4: added @var to PHP models with full class name (with namespace)

0.0.2 XSD Imports and includes routines rewritten
 # Refactored XSD import and include tags processing
 # Fixed problem with numeric namespaces in generated PHP models
 # Added new test cases: Multi level include and import processing, custom schema based on UBL2.0

0.0.1 Initial release
 # Compile XSD to PHP
 # Marshal/unmarshal XML

==========
If you wanna help the project you are welcome to donate BitCoins. Send those to account 1P6iMj85EmYMqgxDkNkDVWWMm7h5EmMM7a
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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

Unknown

Total

1

Last Release

3388d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2cc997a8672e96aaee90c8555b7e5bc9693894e74c7530abf2216ee6799357ff?d=identicon)[shadiakiki1986](/maintainers/shadiakiki1986)

---

Top Contributors

[![shadiakiki1986](https://avatars.githubusercontent.com/u/8392324?v=4)](https://github.com/shadiakiki1986 "shadiakiki1986 (12 commits)")[![hakito](https://avatars.githubusercontent.com/u/320853?v=4)](https://github.com/hakito "hakito (5 commits)")[![danishmalik-maplesoftwares](https://avatars.githubusercontent.com/u/4260792?v=4)](https://github.com/danishmalik-maplesoftwares "danishmalik-maplesoftwares (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/shadiakiki1986-xsd-to-php/health.svg)

```
[![Health](https://phpackages.com/badges/shadiakiki1986-xsd-to-php/health.svg)](https://phpackages.com/packages/shadiakiki1986-xsd-to-php)
```

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M284](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M345](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

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