docs/index.md
PHPWord is a library written in pure PHP that provides a set ofclasses to write to different document file formats, i.e. Microsoft Office Open XML(.docx), OASIS Open Document Format for Office Applications (.odt), Rich Text Format (.rtf), Microsoft Word Binary File (.doc), HTML (.html), and PDF (.pdf).
PHPWord is an open source project licensed under the terms of LGPL version 3. PHPWord is aimed to be a high quality software product by incorporating continuous integration and unit testing. You can learn more about PHPWord by reading this Developers'Documentation.
<!--- - and the `API Documentation <http://phpoffice.github.io/PHPWord/docs/develop/>`__ -->Below are the supported features for each file formats.
| Features | OOXML | ODF | RTF | HTML | ||
|---|---|---|---|---|---|---|
| Document Properties | Standard | :material-check: | :material-check: | :material-check: | :material-check: | :material-check: |
| Custom | :material-check: | :material-check: | ||||
| Element Type | Text | :material-check: | :material-check: | :material-check: | :material-check: | :material-check: |
| Text Run | :material-check: | :material-check: | :material-check: | :material-check: | :material-check: | |
| Title | :material-check: | :material-check: | :material-check: | :material-check: | ||
| Link | :material-check: | :material-check: | :material-check: | :material-check: | :material-check: | |
| Preserve Text | :material-check: | |||||
| Text Break | :material-check: | :material-check: | :material-check: | :material-check: | :material-check: | |
| Page Break | :material-check: | :material-check: | ||||
| List | :material-check: | :material-check: | ||||
| Table | :material-check: | :material-check: | :material-check: | :material-check: | :material-check: | |
| Image | :material-check: | :material-check: | :material-check: | :material-check: | ||
| Object | :material-check: | |||||
| Watermark | :material-check: | |||||
| Table of Contents | :material-check: | |||||
| Header | :material-check: | |||||
| Footer | :material-check: | |||||
| Footnote | :material-check: | :material-check: | ||||
| Endnote | :material-check: | :material-check: | ||||
| Comments | :material-check: | |||||
| Graphs | 2D basic graphs | :material-check: | ||||
| 2D advanced graphs | ||||||
| 3D graphs | :material-check: | |||||
| Math | OMML support | :material-check: | ||||
| MathML support | :material-check: | |||||
| Bonus | Encryption | |||||
| Protection |
| Features | OOXML | DOC | ODF | RTF | HTML | |
|---|---|---|---|---|---|---|
| Document Properties | Standard | :material-check: | ||||
| Custom | :material-check: | |||||
| Element Type | Text | :material-check: | :material-check: | :material-check: | :material-check: | :material-check: |
| Text Run | :material-check: | |||||
| Title | :material-check: | :material-check: | ||||
| Link | :material-check: | :material-check: | ||||
| Preserve Text | :material-check: | |||||
| Text Break | :material-check: | :material-check: | ||||
| Page Break | :material-check: | |||||
| List | :material-check: | :material-check: | :material-check: | |||
| Table | :material-check: | :material-check: | ||||
| Image | :material-check: | :material-check: | ||||
| Object | ||||||
| Watermark | ||||||
| Table of Contents | ||||||
| Header | :material-check: | |||||
| Footer | :material-check: | |||||
| Footnote | :material-check: | |||||
| Endnote | :material-check: | |||||
| Comments | :material-check: | |||||
| Graphs | 2D basic graphs | |||||
| 2D advanced graphs | ||||||
| 3D graphs | ||||||
| Math | OMML support | :material-check: | ||||
| MathML support | :material-check: | |||||
| Bonus | Encryption | |||||
| Protection |
We welcome everyone to contribute to PHPWord. Below are some of the things that you can do to contribute: