PHP Classes

DTD 2 PHP: Generate a class to output DTD compliant documents

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 59%Total: 1,952 All time: 2,012 This week: 183Up
Version License Categories
dtd2php 1.0.0Free for non-comm...XML, Code Generation


This class is meant to generate new PHP classes that are capable of outputting SGML/XML documents compliant with a given DTD definition.

DTD 2 PHP class is used in the PHPVoice package.

Picture of Ben Yacoub Hatem
Name: Ben Yacoub Hatem <contact>
Classes: 18 packages by
Country: Tunisia Tunisia
Age: 45
All time rank: 241 in Tunisia Tunisia
Week rank: 144 Down1 in Tunisia Tunisia Equal
Innovation award
Innovation award
Nominee: 4x


DTD2PHP Author : Ben Yacoub Hatem <> This class is meant to generate php class based on DTD description. dtd2php class is used with PHPVoice package ( Sample usage is available in the phpvoice.php script : * create dtd/PHPVoice/ folder and copy you *.dtd files there * then create output/ folder * and finally run the script Due to dtd specifications, you should make only small changes in dtd file before generating the class. For example with ccxml.dtd, you'll find ELEMENT and ATTLIST of ccxml in the middle of the file. bring them in the beginning of the file, and then run the generator. Your comments & suggestions are welcome Hatem

  Files folder image Files  
File Role Description
Plain text file dtd2php.class.php Class The main class
Accessible without login Plain text file phpvoice.class.php Example sample usage of the class
Accessible without login Plain text file readme.txt Doc. Readme file

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:2,012
This week:183Up
 User Ratings  
 All time