Skip to content

A script to parse an XML schema and generate a list of PHP classes representing the nodes in the XML tree. The constructors for the classes have valildation set up based on the schema specifications.

License

Notifications You must be signed in to change notification settings

florian25686/XSD2PHP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

An XML schema to PHP class generator
Released under the GPL, see COPYING
I offer no guarentees, either express or implied, that this software
and the classes it generates are fit for use. Use at own risk.

Usage: php xsd2php.php <schema.xml>

Will result in a number of classes being created in the current directory.
Each class has the following features
- list of properties representing xml children
- constructor which validate the children based upon type, and number
  of occurances.
- Doc comments for the constructor
- validates against the PHPCodeSniffer PEAR coding standard check.

TODO: Change to use the DOM instead of simpleXML

About

A script to parse an XML schema and generate a list of PHP classes representing the nodes in the XML tree. The constructors for the classes have valildation set up based on the schema specifications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%