Skip to content
Switch branches/tags
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


Legko XML

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
Discussion Group

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).

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


Legko XML: compile XSD schema to PHP, XML marshalling/unmashalling




No packages published