PHP Package: phpoffice/phpword
PHPWord is a PHP library for generating Word documents with ease and flexibility, providing a wide range of functionalities for document creation and manipulation.
Package Description
PHPWord is a powerful PHP library that allows developers to effortlessly create, modify, and convert Word documents using PHP. With a comprehensive set of features and extensive customization options, PHPWord simplifies the process of working with Word documents in a PHP environment, making it a valuable tool for a variety of applications and projects.
- PhpOffice\PhpWord\Reader\MsDoc
- PhpOffice\PhpWord\Reader\HTML
- PhpOffice\PhpWord\Reader\Word2007\Document
- PhpOffice\PhpWord\Reader\Word2007\Comments
- PhpOffice\PhpWord\Reader\Word2007\DocPropsApp
- PhpOffice\PhpWord\Reader\Word2007\Footnotes
- PhpOffice\PhpWord\Reader\Word2007\Settings
- PhpOffice\PhpWord\Reader\Word2007\Numbering
- PhpOffice\PhpWord\Reader\Word2007\Styles
- PhpOffice\PhpWord\Reader\Word2007\AbstractPart
- PhpOffice\PhpWord\Reader\Word2007\DocPropsCore
- PhpOffice\PhpWord\Reader\Word2007\DocPropsCustom
- PhpOffice\PhpWord\Reader\Word2007\Endnotes
- PhpOffice\PhpWord\Reader\AbstractReader
- PhpOffice\PhpWord\Reader\RTF
- PhpOffice\PhpWord\Reader\RTF\Document
- PhpOffice\PhpWord\Reader\Word2007
- PhpOffice\PhpWord\Reader\ReaderInterface
- PhpOffice\PhpWord\Reader\ODText
- PhpOffice\PhpWord\Reader\ODText\Content
- PhpOffice\PhpWord\Reader\ODText\Meta
- PhpOffice\PhpWord\Reader\ODText\AbstractPart
- PhpOffice\PhpWord\Metadata\Compatibility
- PhpOffice\PhpWord\Metadata\DocInfo
- PhpOffice\PhpWord\Metadata\Settings
- PhpOffice\PhpWord\Metadata\Protection
- PhpOffice\PhpWord\Shared\Microsoft\PasswordEncoder
- PhpOffice\PhpWord\Shared\Validate
- PclZip
- PhpOffice\PhpWord\Shared\XMLWriter
- PhpOffice\PhpWord\Shared\Text
- PhpOffice\PhpWord\Shared\Drawing
- PhpOffice\PhpWord\Shared\OLERead
- PhpOffice\PhpWord\Shared\XMLReader
- PhpOffice\PhpWord\Shared\ZipArchive
- PhpOffice\PhpWord\Shared\Css
- PhpOffice\PhpWord\Shared\AbstractEnum
- PhpOffice\PhpWord\Shared\Html
- PhpOffice\PhpWord\Shared\Converter
- PhpOffice\PhpWord\TemplateProcessor
- PhpOffice\PhpWord\Style\NumberingLevel
- PhpOffice\PhpWord\Style\Spacing
- PhpOffice\PhpWord\Style\Fill
- PhpOffice\PhpWord\Style\Indentation
- PhpOffice\PhpWord\Style\Chart
- PhpOffice\PhpWord\Style\Shape
- PhpOffice\PhpWord\Style\TextBox
- PhpOffice\PhpWord\Style\Numbering
- PhpOffice\PhpWord\Style\Border
- PhpOffice\PhpWord\Style\Tab
- PhpOffice\PhpWord\Style\Row
- PhpOffice\PhpWord\Style\Section
- PhpOffice\PhpWord\Style\Font
- PhpOffice\PhpWord\Style\Outline
- PhpOffice\PhpWord\Style\Shadow
- PhpOffice\PhpWord\Style\TOC
- PhpOffice\PhpWord\Style\LineNumbering
- PhpOffice\PhpWord\Style\Image
- PhpOffice\PhpWord\Style\ListItem
- PhpOffice\PhpWord\Style\Frame
- PhpOffice\PhpWord\Style\TablePosition
- PhpOffice\PhpWord\Style\Shading
- PhpOffice\PhpWord\Style\Line
- PhpOffice\PhpWord\Style\Extrusion
- PhpOffice\PhpWord\Style\Cell
- PhpOffice\PhpWord\Style\Paragraph
- PhpOffice\PhpWord\Style\AbstractStyle
- PhpOffice\PhpWord\Style\Table
- PhpOffice\PhpWord\Style\Language
- PhpOffice\PhpWord\Style\Paper
- PhpOffice\PhpWord\Settings
- PhpOffice\PhpWord\Writer\WriterInterface
- PhpOffice\PhpWord\Writer\HTML
- PhpOffice\PhpWord\Writer\PDF
- PhpOffice\PhpWord\Writer\Word2007\Style\Spacing
- PhpOffice\PhpWord\Writer\Word2007\Style\Fill
- PhpOffice\PhpWord\Writer\Word2007\Style\Indentation
- PhpOffice\PhpWord\Writer\Word2007\Style\MarginBorder
- PhpOffice\PhpWord\Writer\Word2007\Style\Shape
- PhpOffice\PhpWord\Writer\Word2007\Style\TextBox
- PhpOffice\PhpWord\Writer\Word2007\Style\Tab
- PhpOffice\PhpWord\Writer\Word2007\Style\Row
- PhpOffice\PhpWord\Writer\Word2007\Style\Section
- PhpOffice\PhpWord\Writer\Word2007\Style\Font
- PhpOffice\PhpWord\Writer\Word2007\Style\Outline
- PhpOffice\PhpWord\Writer\Word2007\Style\Shadow
- PhpOffice\PhpWord\Writer\Word2007\Style\LineNumbering
- PhpOffice\PhpWord\Writer\Word2007\Style\Image
- PhpOffice\PhpWord\Writer\Word2007\Style\Frame
- PhpOffice\PhpWord\Writer\Word2007\Style\TablePosition
- PhpOffice\PhpWord\Writer\Word2007\Style\Shading
- PhpOffice\PhpWord\Writer\Word2007\Style\Line
- PhpOffice\PhpWord\Writer\Word2007\Style\Extrusion
- PhpOffice\PhpWord\Writer\Word2007\Style\Cell
- PhpOffice\PhpWord\Writer\Word2007\Style\Paragraph
- PhpOffice\PhpWord\Writer\Word2007\Style\AbstractStyle
- PhpOffice\PhpWord\Writer\Word2007\Style\Table
- PhpOffice\PhpWord\Writer\Word2007\Part\Document
- PhpOffice\PhpWord\Writer\Word2007\Part\Theme
- PhpOffice\PhpWord\Writer\Word2007\Part\RelsPart
- PhpOffice\PhpWord\Writer\Word2007\Part\RelsDocument
- PhpOffice\PhpWord\Writer\Word2007\Part\Chart
- PhpOffice\PhpWord\Writer\Word2007\Part\Comments
- PhpOffice\PhpWord\Writer\Word2007\Part\DocPropsApp
- PhpOffice\PhpWord\Writer\Word2007\Part\WebSettings
- PhpOffice\PhpWord\Writer\Word2007\Part\Footnotes
- PhpOffice\PhpWord\Writer\Word2007\Part\Settings
- PhpOffice\PhpWord\Writer\Word2007\Part\Numbering
- PhpOffice\PhpWord\Writer\Word2007\Part\Styles
- PhpOffice\PhpWord\Writer\Word2007\Part\Header
- PhpOffice\PhpWord\Writer\Word2007\Part\FontTable
- PhpOffice\PhpWord\Writer\Word2007\Part\Footer
- PhpOffice\PhpWord\Writer\Word2007\Part\AbstractPart
- PhpOffice\PhpWord\Writer\Word2007\Part\DocPropsCore
- PhpOffice\PhpWord\Writer\Word2007\Part\ContentTypes
- PhpOffice\PhpWord\Writer\Word2007\Part\Rels
- PhpOffice\PhpWord\Writer\Word2007\Part\DocPropsCustom
- PhpOffice\PhpWord\Writer\Word2007\Part\Endnotes
- PhpOffice\PhpWord\Writer\Word2007\Element\PageBreak
- PhpOffice\PhpWord\Writer\Word2007\Element\Chart
- PhpOffice\PhpWord\Writer\Word2007\Element\TextRun
- PhpOffice\PhpWord\Writer\Word2007\Element\Shape
- PhpOffice\PhpWord\Writer\Word2007\Element\CheckBox
- PhpOffice\PhpWord\Writer\Word2007\Element\TextBox
- PhpOffice\PhpWord\Writer\Word2007\Element\PreserveText
- PhpOffice\PhpWord\Writer\Word2007\Element\Container
- PhpOffice\PhpWord\Writer\Word2007\Element\Endnote
- PhpOffice\PhpWord\Writer\Word2007\Element\Link
- PhpOffice\PhpWord\Writer\Word2007\Element\Text
- PhpOffice\PhpWord\Writer\Word2007\Element\ListItemRun
- PhpOffice\PhpWord\Writer\Word2007\Element\TOC
- PhpOffice\PhpWord\Writer\Word2007\Element\Image
- PhpOffice\PhpWord\Writer\Word2007\Element\SDT
- PhpOffice\PhpWord\Writer\Word2007\Element\ListItem
- PhpOffice\PhpWord\Writer\Word2007\Element\ParagraphAlignment
- PhpOffice\PhpWord\Writer\Word2007\Element\Bookmark
- PhpOffice\PhpWord\Writer\Word2007\Element\Title
- PhpOffice\PhpWord\Writer\Word2007\Element\Footnote
- PhpOffice\PhpWord\Writer\Word2007\Element\TableAlignment
- PhpOffice\PhpWord\Writer\Word2007\Element\Line
- PhpOffice\PhpWord\Writer\Word2007\Element\FormField
- PhpOffice\PhpWord\Writer\Word2007\Element\Field
- PhpOffice\PhpWord\Writer\Word2007\Element\Ruby
- PhpOffice\PhpWord\Writer\Word2007\Element\Formula
- PhpOffice\PhpWord\Writer\Word2007\Element\Table
- PhpOffice\PhpWord\Writer\Word2007\Element\OLEObject
- PhpOffice\PhpWord\Writer\Word2007\Element\TextBreak
- PhpOffice\PhpWord\Writer\Word2007\Element\AbstractElement
- PhpOffice\PhpWord\Writer\RTF
- PhpOffice\PhpWord\Writer\HTML\Style\Font
- PhpOffice\PhpWord\Writer\HTML\Style\Image
- PhpOffice\PhpWord\Writer\HTML\Style\Generic
- PhpOffice\PhpWord\Writer\HTML\Style\Paragraph
- PhpOffice\PhpWord\Writer\HTML\Style\AbstractStyle
- PhpOffice\PhpWord\Writer\HTML\Style\Table
- PhpOffice\PhpWord\Writer\HTML\Part\Head
- PhpOffice\PhpWord\Writer\HTML\Part\Body
- PhpOffice\PhpWord\Writer\HTML\Part\AbstractPart
- PhpOffice\PhpWord\Writer\HTML\Element\PageBreak
- PhpOffice\PhpWord\Writer\HTML\Element\TextRun
- PhpOffice\PhpWord\Writer\HTML\Element\Container
- PhpOffice\PhpWord\Writer\HTML\Element\Endnote
- PhpOffice\PhpWord\Writer\HTML\Element\Link
- PhpOffice\PhpWord\Writer\HTML\Element\Text
- PhpOffice\PhpWord\Writer\HTML\Element\ListItemRun
- PhpOffice\PhpWord\Writer\HTML\Element\Image
- PhpOffice\PhpWord\Writer\HTML\Element\ListItem
- PhpOffice\PhpWord\Writer\HTML\Element\Bookmark
- PhpOffice\PhpWord\Writer\HTML\Element\Title
- PhpOffice\PhpWord\Writer\HTML\Element\Footnote
- PhpOffice\PhpWord\Writer\HTML\Element\Ruby
- PhpOffice\PhpWord\Writer\HTML\Element\Table
- PhpOffice\PhpWord\Writer\HTML\Element\TextBreak
- PhpOffice\PhpWord\Writer\HTML\Element\AbstractElement
- PhpOffice\PhpWord\Writer\WriterPartInterface
- PhpOffice\PhpWord\Writer\AbstractWriter
- PhpOffice\PhpWord\Writer\PDF\AbstractRenderer
- PhpOffice\PhpWord\Writer\PDF\MPDF
- PhpOffice\PhpWord\Writer\PDF\DomPDF
- PhpOffice\PhpWord\Writer\PDF\TCPDF
- PhpOffice\PhpWord\Writer\RTF\Style\Indentation
- PhpOffice\PhpWord\Writer\RTF\Style\Border
- PhpOffice\PhpWord\Writer\RTF\Style\Tab
- PhpOffice\PhpWord\Writer\RTF\Style\Section
- PhpOffice\PhpWord\Writer\RTF\Style\Font
- PhpOffice\PhpWord\Writer\RTF\Style\Paragraph
- PhpOffice\PhpWord\Writer\RTF\Style\AbstractStyle
- PhpOffice\PhpWord\Writer\RTF\Part\Document
- PhpOffice\PhpWord\Writer\RTF\Part\Header
- PhpOffice\PhpWord\Writer\RTF\Part\AbstractPart
- PhpOffice\PhpWord\Writer\RTF\Element\PageBreak
- PhpOffice\PhpWord\Writer\RTF\Element\TextRun
- PhpOffice\PhpWord\Writer\RTF\Element\Container
- PhpOffice\PhpWord\Writer\RTF\Element\Link
- PhpOffice\PhpWord\Writer\RTF\Element\Text
- PhpOffice\PhpWord\Writer\RTF\Element\Image
- PhpOffice\PhpWord\Writer\RTF\Element\ListItem
- PhpOffice\PhpWord\Writer\RTF\Element\Title
- PhpOffice\PhpWord\Writer\RTF\Element\Field
- PhpOffice\PhpWord\Writer\RTF\Element\Ruby
- PhpOffice\PhpWord\Writer\RTF\Element\Table
- PhpOffice\PhpWord\Writer\RTF\Element\TextBreak
- PhpOffice\PhpWord\Writer\RTF\Element\AbstractElement
- PhpOffice\PhpWord\Writer\Word2007
- PhpOffice\PhpWord\Writer\EPub3
- PhpOffice\PhpWord\Writer\EPub3\Style\Font
- PhpOffice\PhpWord\Writer\EPub3\Style\Paragraph
- PhpOffice\PhpWord\Writer\EPub3\Style\AbstractStyle
- PhpOffice\PhpWord\Writer\EPub3\Style\Table
- PhpOffice\PhpWord\Writer\EPub3\Part\Content
- PhpOffice\PhpWord\Writer\EPub3\Part\Meta
- PhpOffice\PhpWord\Writer\EPub3\Part\AbstractPart
- PhpOffice\PhpWord\Writer\EPub3\Part\ContentXhtml
- PhpOffice\PhpWord\Writer\EPub3\Part\Manifest
- PhpOffice\PhpWord\Writer\EPub3\Part\Mimetype
- PhpOffice\PhpWord\Writer\EPub3\Part\Nav
- PhpOffice\PhpWord\Writer\EPub3\Element\Text
- PhpOffice\PhpWord\Writer\EPub3\Element\Image
- PhpOffice\PhpWord\Writer\EPub3\Element\AbstractElement
- PhpOffice\PhpWord\Writer\EPub3\Part
- PhpOffice\PhpWord\Writer\ODText
- PhpOffice\PhpWord\Writer\ODText\Style\Numbering
- PhpOffice\PhpWord\Writer\ODText\Style\Section
- PhpOffice\PhpWord\Writer\ODText\Style\Font
- PhpOffice\PhpWord\Writer\ODText\Style\Image
- PhpOffice\PhpWord\Writer\ODText\Style\Paragraph
- PhpOffice\PhpWord\Writer\ODText\Style\AbstractStyle
- PhpOffice\PhpWord\Writer\ODText\Style\Table
- PhpOffice\PhpWord\Writer\ODText\Part\Content
- PhpOffice\PhpWord\Writer\ODText\Part\Meta
- PhpOffice\PhpWord\Writer\ODText\Part\Styles
- PhpOffice\PhpWord\Writer\ODText\Part\AbstractPart
- PhpOffice\PhpWord\Writer\ODText\Part\Manifest
- PhpOffice\PhpWord\Writer\ODText\Part\Mimetype
- PhpOffice\PhpWord\Writer\ODText\Element\PageBreak
- PhpOffice\PhpWord\Writer\ODText\Element\TextRun
- PhpOffice\PhpWord\Writer\ODText\Element\Container
- PhpOffice\PhpWord\Writer\ODText\Element\Link
- PhpOffice\PhpWord\Writer\ODText\Element\Text
- PhpOffice\PhpWord\Writer\ODText\Element\ListItemRun
- PhpOffice\PhpWord\Writer\ODText\Element\Image
- PhpOffice\PhpWord\Writer\ODText\Element\Title
- PhpOffice\PhpWord\Writer\ODText\Element\Field
- PhpOffice\PhpWord\Writer\ODText\Element\Ruby
- PhpOffice\PhpWord\Writer\ODText\Element\Formula
- PhpOffice\PhpWord\Writer\ODText\Element\Table
- PhpOffice\PhpWord\Writer\ODText\Element\TextBreak
- PhpOffice\PhpWord\Writer\ODText\Element\AbstractElement
- PhpOffice\PhpWord\Collection\AbstractCollection
- PhpOffice\PhpWord\Collection\Bookmarks
- PhpOffice\PhpWord\Collection\Comments
- PhpOffice\PhpWord\Collection\Footnotes
- PhpOffice\PhpWord\Collection\Charts
- PhpOffice\PhpWord\Collection\Titles
- PhpOffice\PhpWord\Collection\Endnotes
- PhpOffice\PhpWord\ComplexType\TrackChangesView
- PhpOffice\PhpWord\ComplexType\RubyProperties
- PhpOffice\PhpWord\ComplexType\TblWidth
- PhpOffice\PhpWord\ComplexType\FootnoteProperties
- PhpOffice\PhpWord\ComplexType\ProofState
- PhpOffice\PhpWord\Style
- PhpOffice\PhpWord\SimpleType\JcTable
- PhpOffice\PhpWord\SimpleType\LineSpacingRule
- PhpOffice\PhpWord\SimpleType\Jc
- PhpOffice\PhpWord\SimpleType\Border
- PhpOffice\PhpWord\SimpleType\TextAlignment
- PhpOffice\PhpWord\SimpleType\Zoom
- PhpOffice\PhpWord\SimpleType\TblWidth
- PhpOffice\PhpWord\SimpleType\VerticalJc
- PhpOffice\PhpWord\SimpleType\DocProtect
- PhpOffice\PhpWord\SimpleType\NumberFormat
- PhpOffice\PhpWord\Escaper\EscaperInterface
- PhpOffice\PhpWord\Escaper\AbstractEscaper
- PhpOffice\PhpWord\Escaper\Xml
- PhpOffice\PhpWord\Escaper\RegExp
- PhpOffice\PhpWord\Escaper\Rtf
- PhpOffice\PhpWord\IOFactory
- PhpOffice\PhpWord\Autoloader
- PhpOffice\PhpWord\Exception\InvalidImageException
- PhpOffice\PhpWord\Exception\InvalidObjectException
- PhpOffice\PhpWord\Exception\UnsupportedImageTypeException
- PhpOffice\PhpWord\Exception\CreateTemporaryFileException
- PhpOffice\PhpWord\Exception\CopyFileException
- PhpOffice\PhpWord\Exception\InvalidStyleException
- PhpOffice\PhpWord\Exception\Exception
- PhpOffice\PhpWord\Media
- PhpOffice\PhpWord\Element\PageBreak
- PhpOffice\PhpWord\Element\Chart
- PhpOffice\PhpWord\Element\TextRun
- PhpOffice\PhpWord\Element\Comment
- PhpOffice\PhpWord\Element\Shape
- PhpOffice\PhpWord\Element\CheckBox
- PhpOffice\PhpWord\Element\TextBox
- PhpOffice\PhpWord\Element\PreserveText
- PhpOffice\PhpWord\Element\Endnote
- PhpOffice\PhpWord\Element\Row
- PhpOffice\PhpWord\Element\Section
- PhpOffice\PhpWord\Element\Link
- PhpOffice\PhpWord\Element\Text
- PhpOffice\PhpWord\Element\ListItemRun
- PhpOffice\PhpWord\Element\TOC
- PhpOffice\PhpWord\Element\Image
- PhpOffice\PhpWord\Element\SDT
- PhpOffice\PhpWord\Element\TrackChange
- PhpOffice\PhpWord\Element\Header
- PhpOffice\PhpWord\Element\ListItem
- PhpOffice\PhpWord\Element\Bookmark
- PhpOffice\PhpWord\Element\AbstractContainer
- PhpOffice\PhpWord\Element\Footer
- PhpOffice\PhpWord\Element\Title
- PhpOffice\PhpWord\Element\Footnote
- PhpOffice\PhpWord\Element\Line
- PhpOffice\PhpWord\Element\FormField
- PhpOffice\PhpWord\Element\Field
- PhpOffice\PhpWord\Element\Ruby
- PhpOffice\PhpWord\Element\Cell
- PhpOffice\PhpWord\Element\Formula
- PhpOffice\PhpWord\Element\Table
- PhpOffice\PhpWord\Element\OLEObject
- PhpOffice\PhpWord\Element\TextBreak
- PhpOffice\PhpWord\Element\AbstractElement
- PhpOffice\PhpWord\PhpWord
Download Latest Version: 1.4.0

Previous Versions
Code Integration Example
Make sure to include the correct namespace and class paths for proper usage.
<?php
// Example from PHPlibraries.com
require_once 'libs/phpoffice/phpword/1.4.0/loader.php';
use PhpOffice\PhpWord\PhpWord;
$obj = new PhpWord();
echo '✅ Test OK: ' . get_class($obj);
?>
We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.
Community Discussion
Ask questions, share tips, or report issues below.