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)02602PHP

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 today

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

```
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 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community14

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

3437d 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

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19037.7M41](/packages/mck89-peast)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9642.0k](/packages/sauladam-shipment-tracker)[moonshine/layouts-field

Field for repeating groups of fields for MoonShine

107.9k](/packages/moonshine-layouts-field)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

112.9k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

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