VS PHP Word HTML: Create DOCX Word document dynamically from HTML

Recommend this page to a friend!
  Info   Example   View files (210)   Download .zip   Reputation   Support forum (27)   Blog    
Ratings Unique User Downloads Download Rankings
73%Total: 5,261 This week: 4All time: 486 This week: 54
Version License PHP version Categories
vsword 1.0.14GNU General Publi...5.0PHP 5, Files and Folders, Parsers
Description Author

This class can create DOCX Word document dynamically from HTML.

It can create a Microsoft Word document adding document elements dynamically.

It can also parse given HTML code and add the page elements to the Word document.

The generated Word DOCX file is saved to a file with a given name.

Recommendations

Create MS .doc files
Use PHP to create files in MS .doc format

What is the best PHP docx class?
Not understanding how to style

Innovation Award
PHP Programming Innovation award winner
January 2015
Winner


Prize: One copy of the Zend Studio
Many applications need to create word processing documents in Microsoft Word XML DOCX format.

Solutions for this problem can be based on composing Word documents dynamically adding elements to the document one by one, or converting existing HTML documents to the DOCX format.

This package provides both solutions, so the developer can use the HTML already generated to present information on his application Web pages and then add or modify other document elements programmatically.

Manuel Lemos
Picture of Raskin Veniamin
  Performance   Level  
Name: Raskin Veniamin <contact>
Classes: 11 packages by
Country: Russian Federation Russian Federation
Age: ???
All time rank: 2457 in Russian Federation Russian Federation
Week rank: 31 4 in Russian Federation Russian Federation
Innovation award
Innovation award
Nominee: 5x

Winner: 1x

  Files  
File Role Description
documentation (139 files)
examples (10 files)
vsword (3 files, 3 directories)

  Files  /  documentation  
File Role Description
   404.html Doc. Documentation
   class-AlignNode.html Doc. Documentation
   class-ArbitraryCompositeNode.html Doc. Documentation
   class-ArbitraryNode.html Doc. Documentation
   class-AttachVsWord.html Doc. Documentation
   class-BodyCompositeNode.html Doc. Documentation
   class-BoldStyleNode.html Doc. Documentation
   class-BrNode.html Doc. Documentation
   class-BrNodeNodeAddeded.html Doc. Documentation
   class-CompositeNode.html Doc. Documentation
   class-ContentTypesStructureDocFile.html Doc. Documentation
   class-DefaultInitNode.html Doc. Documentation
   class-DefNodeAddeded.html Doc. Documentation
   class-DocPropsDirA...ructureDocFile.html Doc. Documentation
   class-DocPropsDirC...ructureDocFile.html Doc. Documentation
   class-DocumentCompositeNode.html Doc. Documentation
   class-DrawingNode.html Doc. Documentation
   class-DrawingNodeNodeAddeded.html Doc. Documentation
   class-EmptyCompositeNode.html Doc. Documentation
   class-Exception.html Doc. Documentation
   class-FontSizeStyleNode.html Doc. Documentation
   class-HTMLLoader.html Doc. Documentation
   class-HtmlParser.html Doc. Documentation
   class-HyperlinkCompositeNode.html Doc. Documentation
   class-IBlockContext.html Doc. Documentation
   class-IInitNode.html Doc. Documentation
   class-ILineContext.html Doc. Documentation
   class-INode.html Doc. Documentation
   class-INodeStyle.html Doc. Documentation
   class-INodeStyleAdded.html Doc. Documentation
   class-INodeTextAdded.html Doc. Documentation
   class-IPNodeStyle.html Doc. Documentation
   class-IPNodeStyleAdded.html Doc. Documentation
   class-ItalicStyleNode.html Doc. Documentation
   class-ListCompositeNode.html Doc. Documentation
   class-ListCompositeNodeNodeAddeded.html Doc. Documentation
   class-ListItemCompositeNode.html Doc. Documentation
   class-ListItemComp...odeNodeAddeded.html Doc. Documentation
   class-ListStyle.html Doc. Documentation
   class-MyInitNode.html Doc. Documentation
   class-Node.html Doc. Documentation
   class-NodeAddeded.html Doc. Documentation
   class-PageBreakNode.html Doc. Documentation
   class-Parser.html Doc. Documentation
   class-PCompositeNode.html Doc. Documentation
   class-PCompositeNodeNodeAddeded.html Doc. Documentation
   class-PPrCompositeNode.html Doc. Documentation
   class-RCompositeNode.html Doc. Documentation
   class-RCompositeNodeNodeAddeded.html Doc. Documentation
   class-RelsDirRelsStructureDocFile.html Doc. Documentation
   class-RPrCompositeNode.html Doc. Documentation
   class-StringNode.html Doc. Documentation
   class-StructureDocFile.html Doc. Documentation
   class-Style.html Doc. Documentation
   class-TableColCompositeNode.html Doc. Documentation
   class-TableColComp...odeNodeAddeded.html Doc. Documentation
   class-TableCompositeNode.html Doc. Documentation
   class-TableCompositeNodeNodeAddeded.html Doc. Documentation
   class-TableRowCompositeNode.html Doc. Documentation
   class-TableRowComp...odeNodeAddeded.html Doc. Documentation
   class-TableStyle.html Doc. Documentation
   class-TextNode.html Doc. Documentation
   class-UnderlineStyleNode.html Doc. Documentation
   class-VsWord.html Doc. Documentation
   class-WordDirDocum...ructureDocFile.html Doc. Documentation
   class-WordDirFontT...ructureDocFile.html Doc. Documentation
   class-WordDirRelsD...ructureDocFile.html Doc. Documentation
   class-WordDirSetti...ructureDocFile.html Doc. Documentation
   class-WordDirStylesStructureDocFile.html Doc. Documentation
   class-WordDirStyle...ructureDocFile.html Doc. Documentation
   class-WordDirTheme...ructureDocFile.html Doc. Documentation
   class-WordDirWebSe...ructureDocFile.html Doc. Documentation
   class-ZipArchive.html Doc. Documentation
   elementlist.js Data Auxiliary data
   index.html Doc. Documentation
   package-PHP.html Doc. Documentation
   package-vsword.html Doc. Documentation
   package-vsword.node.html Doc. Documentation
   package-vsword.parser.addesed.html Doc. Documentation
   package-vsword.parser.html Doc. Documentation
   package-vsword.structure.html Doc. Documentation
   package-vsword.structure.style.html Doc. Documentation
   source-class-AlignNode.html Doc. Documentation
   source-class-ArbitraryCompositeNode.html Doc. Documentation
   source-class-ArbitraryNode.html Doc. Documentation
   source-class-AttachVsWord.html Doc. Documentation
   source-class-BodyCompositeNode.html Doc. Documentation
   source-class-BoldStyleNode.html Doc. Documentation
   source-class-BrNode.html Doc. Documentation
   source-class-BrNodeNodeAddeded.html Doc. Documentation
   source-class-CompositeNode.html Doc. Documentation
   source-class-Conte...ructureDocFile.html Doc. Documentation
   source-class-DefaultInitNode.html Doc. Documentation
   source-class-DefNodeAddeded.html Doc. Documentation
   source-class-DocPr...ructureDocFile.html Doc. Documentation
   source-class-DocPr...ructureDocFile.html Doc. Documentation
   source-class-DocumentCompositeNode.html Doc. Documentation
   source-class-DrawingNode.html Doc. Documentation
   source-class-DrawingNodeNodeAddeded.html Doc. Documentation
   source-class-EmptyCompositeNode.html Doc. Documentation
   source-class-FontSizeStyleNode.html Doc. Documentation
   source-class-HTMLLoader.html Doc. Documentation
   source-class-HtmlParser.html Doc. Documentation
   source-class-HyperlinkCompositeNode.html Doc. Documentation
   source-class-IBlockContext.html Doc. Documentation
   source-class-IInitNode.html Doc. Documentation
   source-class-ILineContext.html Doc. Documentation
   source-class-INode.html Doc. Documentation
   source-class-INodeStyle.html Doc. Documentation
   source-class-INodeStyleAdded.html Doc. Documentation
   source-class-INodeTextAdded.html Doc. Documentation
   source-class-IPNodeStyle.html Doc. Documentation
   source-class-IPNodeStyleAdded.html Doc. Documentation
   source-class-ItalicStyleNode.html Doc. Documentation
   source-class-ListCompositeNode.html Doc. Documentation
   source-class-ListC...odeNodeAddeded.html Doc. Documentation
   source-class-ListItemCompositeNode.html Doc. Documentation
   source-class-ListI...odeNodeAddeded.html Doc. Documentation
   source-class-ListStyle.html Doc. Documentation
   source-class-MyInitNode.html Doc. Documentation
   source-class-Node.html Doc. Documentation
   source-class-NodeAddeded.html Doc. Documentation
   source-class-PageBreakNode.html Doc. Documentation
   source-class-Parser.html Doc. Documentation
   source-class-PCompositeNode.html Doc. Documentation
   source-class-PComp...odeNodeAddeded.html Doc. Documentation
   source-class-PPrCompositeNode.html Doc. Documentation
   source-class-RCompositeNode.html Doc. Documentation
   source-class-RComp...odeNodeAddeded.html Doc. Documentation
   source-class-RelsD...ructureDocFile.html Doc. Documentation
   source-class-RPrCompositeNode.html Doc. Documentation
   source-class-StringNode.html Doc. Documentation
   source-class-StructureDocFile.html Doc. Documentation
   source-class-Style.html Doc. Documentation
   source-class-TableColCompositeNode.html Doc. Documentation
   source-class-Table...odeNodeAddeded.html Doc. Documentation
   source-class-TableCompositeNode.html Doc. Documentation
   source-class-Table...odeNodeAddeded.html Doc. Documentation
   source-class-TableRowCompositeNode.html Doc. Documentation

  Files  /  examples  
File Role Description
   align.php Example Example script
   base.php Example Example script
   htmlparser.php Example Example script
   htmlparser_yourstyle.php Example Example script
   img1.jpg Photo Photograph
   pagebreak.php Example Example script
   table.php Example Example script
   table2.php Example Example script
   tinymce.php Example Example script
   tree.php Example Example script

  Files  /  vsword  
File Role Description
node (27 files)
parser (4 files, 1 directory)
structure (13 files, 1 directory)
   AttachVsWord.php Class Class source
   interfaces.php Class Class source
   VsWord.php Class Class source

  Files  /  vsword  /  node  
File Role Description
   AlignNode.php Class Class source
   ArbitraryCompositeNode.php Class Class source
   ArbitraryNode.php Class Class source
   BodyCompositeNode.php Class Class source
   BoldStyleNode.php Class Class source
   BrNode.php Class Class source
   CompositeNode.php Class Class source
   DocumentCompositeNode.php Class Class source
   DrawingNode.php Class Class source
   EmptyCompositeNode.php Class Class source
   FontSizeStyleNode.php Class Class source
   HyperlinkCompositeNode.php Class Class source
   ItalicStyleNode.php Class Class source
   ListCompositeNode.php Class Class source
   ListItemCompositeNode.php Class Class source
   Node.php Class Class source
   PageBreakNode.php Class Class source
   PCompositeNode.php Class Class source
   PPrCompositeNode.php Class Class source
   RCompositeNode.php Class Class source
   RPrCompositeNode.php Class Class source
   StringNode.php Class Class source
   TableColCompositeNode.php Class Class source
   TableCompositeNode.php Class Class source
   TableRowCompositeNode.php Class Class source
   TextNode.php Class Class source
   UnderlineStyleNode.php Class Class source

  Files  /  vsword  /  parser  
File Role Description
addeded (11 files)
   DefaultInitNode.php Class Class source
   HTMLLoader.php Class Class source
   HtmlParser.php Class Class source
   Parser.php Class Class source

  Files  /  vsword  /  parser  /  addeded  
File Role Description
   BrNodeNodeAddeded.php Class Class source
   DefNodeAddeded.php Class Class source
   DrawingNodeNodeAddeded.php Class Class source
   ListCompositeNodeNodeAddeded.php Class Class source
   ListItemCompositeNodeNodeAddeded.php Class Class source
   NodeAddeded.php Class Class source
   PCompositeNodeNodeAddeded.php Class Class source
   RCompositeNodeNodeAddeded.php Class Class source
   TableColCompositeNodeNodeAddeded.php Class Class source
   TableCompositeNodeNodeAddeded.php Class Class source
   TableRowCompositeNodeNodeAddeded.php Class Class source

  Files  /  vsword  /  structure  
File Role Description
style (3 files)
   ContentTypesStructureDocFile.php Class Class source
   DocPropsDirAppStructureDocFile.php Class Class source
   DocPropsDirCoreStructureDocFile.php Class Class source
   RelsDirRelsStructureDocFile.php Class Class source
   StructureDocFile.php Class Class source
   WordDirDocumentStructureDocFile.php Class Class source
   WordDirFontTableStructureDocFile.php Class Class source
   WordDirRelsDirDocu...tructureDocFile.php Class Class source
   WordDirSettingsStructureDocFile.php Class Class source
   WordDirStylesStructureDocFile.php Class Class source
   WordDirStylesWithE...tructureDocFile.php Class Class source
   WordDirThemeDirThemeStructureDocFile.php Class Class source
   WordDirWebSettingsStructureDocFile.php Class Class source

  Files  /  vsword  /  structure  /  style  
File Role Description
   ListStyle.php Class Class source
   Style.php Class Class source
   TableStyle.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:5,261
This week:4
All time:486
This week:54
User Ratings User Comments (2)
 All time
Utility:93%
Consistency:87%
Documentation:87%
Examples:90%
Tests:-
Videos:-
Overall:73%
Rank:206
 
useful and cool)
5 years ago (Havok)
80%
cool
5 years ago (Yves Marie HAMAYON)
70%
 

For more information send a message to info at phpclasses dot org.