Skip to content

Commit b2a0e08

Browse files
committed
#154: Update documentation to include API docs and code coverage report
1 parent febb9d0 commit b2a0e08

File tree

3 files changed

+85
-53
lines changed

3 files changed

+85
-53
lines changed

README.md

Lines changed: 40 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,40 +7,44 @@
77
[![License](https://poser.pugx.org/phpoffice/phpword/license.png)](https://packagist.org/packages/phpoffice/phpword)
88

99

10-
PHPWord is a library written in pure PHP that provides a set of classes to write to and read from different document file formats. The current version of PHPWord supports Microsoft [Office Open XML](http://en.wikipedia.org/wiki/Office_Open_XML) (OOXML or OpenXML), OASIS [Open Document Format for Office Applications](http://en.wikipedia.org/wiki/OpenDocument) (OpenDocument or ODF), and [Rich Text Format](http://en.wikipedia.org/wiki/Rich_Text_Format) (RTF).
10+
PHPWord is a library written in pure PHP that provides a set of classes to write to and read from different document file formats. The current version of PHPWord supports Microsoft [Office Open XML](http://en.wikipedia.org/wiki/Office_Open_XML) (OOXML or OpenXML), OASIS [Open Document Format for Office Applications](http://en.wikipedia.org/wiki/OpenDocument) (OpenDocument or ODF), [Rich Text Format](http://en.wikipedia.org/wiki/Rich_Text_Format) (RTF), HTML, and PDF.
11+
12+
PHPWord is an open source project licensed under the terms of [LGPL version 3](https://github.com/PHPOffice/PHPWord/blob/develop/LICENSE.md). PHPWord is aimed to be a high quality software product by incorporating [continuous integration](https://travis-ci.org/PHPOffice/PHPWord) and [unit testing](http://phpoffice.github.io/PHPWord/coverage/develop/). You can learn more about PHPWord by reading the [Developers' Documentation](http://phpword.readthedocs.org/) and the [API Documentation](http://phpoffice.github.io/PHPWord/docs/develop/).
13+
14+
## Features
1115

1216
With PHPWord, you can create DOCX, ODT, or RTF documents dynamically using your PHP 5.3+ scripts. Below are some of the things that you can do with PHPWord library:
1317

14-
* Set document properties, e.g. title, subject, and creator.
15-
* Create document sections with different settings, e.g. portrait/landscape, page size, and page numbering
16-
* Create header and footer for each sections
17-
* Set default font type, font size, and paragraph style
18-
* Use UTF-8 and East Asia fonts/characters
19-
* Define custom font styles (e.g. bold, italic, color) and paragraph styles (e.g. centered, multicolumns, spacing) either as named style or inline in text
20-
* Insert paragraphs, either as a simple text or complex one (a text run) that contains other elements
21-
* Insert titles (headers) and table of contents
22-
* Insert text breaks and page breaks
23-
* Insert and format images, either local, remote, or as page watermarks
24-
* Insert binary OLE Objects such as Excel or Visio
25-
* Insert and format table with customized properties for each rows (e.g. repeat as header row) and cells (e.g. background color, rowspan, colspan)
26-
* Insert list items as bulleted, numbered, or multilevel
27-
* Insert hyperlinks
28-
* Insert footnotes and endnotes
29-
* Create document from templates
30-
* Use XSL 1.0 style sheets to transform main document part of OOXML template
31-
* ... and many more features on progress
32-
33-
__Want to contribute?__ [Fork us](https://github.com/PHPOffice/PHPWord/fork) or [submit](https://github.com/PHPOffice/PHPWord/issues) your bug reports or feature requests to us.
18+
- Set document properties, e.g. title, subject, and creator.
19+
- Create document sections with different settings, e.g. portrait/landscape, page size, and page numbering
20+
- Create header and footer for each sections
21+
- Set default font type, font size, and paragraph style
22+
- Use UTF-8 and East Asia fonts/characters
23+
- Define custom font styles (e.g. bold, italic, color) and paragraph styles (e.g. centered, multicolumns, spacing) either as named style or inline in text
24+
- Insert paragraphs, either as a simple text or complex one (a text run) that contains other elements
25+
- Insert titles (headers) and table of contents
26+
- Insert text breaks and page breaks
27+
- Insert and format images, either local, remote, or as page watermarks
28+
- Insert binary OLE Objects such as Excel or Visio
29+
- Insert and format table with customized properties for each rows (e.g. repeat as header row) and cells (e.g. background color, rowspan, colspan)
30+
- Insert list items as bulleted, numbered, or multilevel
31+
- Insert hyperlinks
32+
- Insert footnotes and endnotes
33+
- Create document from templates
34+
- Use XSL 1.0 style sheets to transform main document part of OOXML template
35+
- ... and many more features on progress
3436

3537
## Requirements
36-
* PHP 5.3+
37-
* PHP [Zip](http://php.net/manual/en/book.zip.php) extension
38-
* PHP [XML Parser](http://www.php.net/manual/en/xml.installation.php) extension
3938

40-
### Optional PHP extensions
41-
* PHP [GD](http://php.net/manual/en/book.image.php) extension
42-
* PHP [XMLWriter](http://php.net/manual/en/book.xmlwriter.php) extension
43-
* PHP [XSL](http://php.net/manual/en/book.xsl.php) extension
39+
PHPWord requires the following:
40+
41+
- PHP 5.3+
42+
- [Zip extension](http://php.net/manual/en/book.zip.php)
43+
- [XML Parser extension](http://www.php.net/manual/en/xml.installation.php)
44+
- [GD extension](http://php.net/manual/en/book.image.php) (optional, used to add images)
45+
- [XMLWriter extension](http://php.net/manual/en/book.xmlwriter.php) (optional, used to write DOCX and ODT)
46+
- [XSL extension](http://php.net/manual/en/book.xsl.php) (optional, used to apply XSL style sheet to template )
47+
- [dompdf](https://github.com/dompdf/dompdf) (optional, used to write PDF)
4448

4549
## Installation
4650

@@ -63,7 +67,7 @@ require_once 'path/to/PhpWord/src/PhpWord/Autoloader.php';
6367
\PhpOffice\PhpWord\Autoloader::register();
6468
```
6569

66-
## Basic usage
70+
## Usages
6771

6872
The following is a basic example of the PHPWord library. More examples are provided in the [samples folder](samples/).
6973

@@ -107,6 +111,11 @@ $objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'RTF');
107111
$objWriter->save('helloWorld.rtf');
108112
```
109113

110-
## Documentation
114+
## Contributing
115+
116+
We welcome everyone to contribute to PHPWord. Below are some of the things that you can do to contribute:
111117

112-
__Want to know more?__ Read the full documentation of PHPWord on [Read The Docs](http://phpword.readthedocs.org/).
118+
- Read [our contributing guide](https://github.com/PHPOffice/PHPWord/blob/master/CONTRIBUTING.md)
119+
- [Fork us](https://github.com/PHPOffice/PHPWord/fork) and [request a pull](https://github.com/PHPOffice/PHPWord/pulls) to the [develop](https://github.com/PHPOffice/PHPWord/tree/develop) branch
120+
- Submit [bug reports or feature requests](https://github.com/PHPOffice/PHPWord/issues) to GitHub
121+
- Follow [@PHPWord](https://twitter.com/PHPWord) and [@PHPOffice](https://twitter.com/PHPOffice) on Twitter

docs/intro.rst

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,14 @@ Applications <http://en.wikipedia.org/wiki/OpenDocument>`__
1212
(OpenDocument or ODF), and `Rich Text
1313
Format <http://en.wikipedia.org/wiki/Rich_Text_Format>`__ (RTF).
1414

15-
No Windows operating system is needed for usage because the resulting
16-
DOCX, ODT, or RTF files can be opened by all major `word processing
17-
softwares <http://en.wikipedia.org/wiki/List_of_word_processors>`__.
18-
19-
PHPWord is an open source project licensed under LGPL version 3. PHPWord is `unit
20-
tested <https://travis-ci.org/PHPOffice/PHPWord>`__ to make sure that
21-
the released versions are stable.
22-
23-
**Want to contribute?** `Fork
24-
us <https://github.com/PHPOffice/PHPWord/fork>`__ or
25-
`submit <https://github.com/PHPOffice/PHPWord/issues>`__ your bug
26-
reports or feature requests to us.
15+
PHPWord is an open source project licensed under the terms of `LGPL
16+
version 3 <https://github.com/PHPOffice/PHPWord/blob/develop/LICENSE.md>`__.
17+
PHPWord is aimed to be a high quality software product by incorporating
18+
`continuous integration <https://travis-ci.org/PHPOffice/PHPWord>`__ and
19+
`unit testing <http://phpoffice.github.io/PHPWord/coverage/develop/>`__.
20+
You can learn more about PHPWord by reading this Developers'
21+
Documentation and the `API
22+
Documentation <http://phpoffice.github.io/PHPWord/docs/develop/>`__.
2723

2824
Features
2925
--------
@@ -180,3 +176,20 @@ Readers
180176
+---------------------------+----------------------+--------+-------+-------+
181177
| | Protection | | | |
182178
+---------------------------+----------------------+--------+-------+-------+
179+
180+
Contributing
181+
------------
182+
183+
We welcome everyone to contribute to PHPWord. Below are some of the
184+
things that you can do to contribute:
185+
186+
- Read `our contributing
187+
guide <https://github.com/PHPOffice/PHPWord/blob/master/CONTRIBUTING.md>`__
188+
- `Fork us <https://github.com/PHPOffice/PHPWord/fork>`__ and `request
189+
a pull <https://github.com/PHPOffice/PHPWord/pulls>`__ to the
190+
`develop <https://github.com/PHPOffice/PHPWord/tree/develop>`__
191+
branch
192+
- Submit `bug reports or feature
193+
requests <https://github.com/PHPOffice/PHPWord/issues>`__ to GitHub
194+
- Follow `@PHPWord <https://twitter.com/PHPWord>`__ and
195+
`@PHPOffice <https://twitter.com/PHPOffice>`__ on Twitter

docs/src/documentation.md

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,7 @@ Don't forget to change `code::` directive to `code-block::` in the resulting rst
4747

4848
PHPWord is a library written in pure PHP that provides a set of classes to write to and read from different document file formats. The current version of PHPWord supports Microsoft [Office Open XML](http://en.wikipedia.org/wiki/Office_Open_XML) (OOXML or OpenXML), OASIS [Open Document Format for Office Applications](http://en.wikipedia.org/wiki/OpenDocument) (OpenDocument or ODF), and [Rich Text Format](http://en.wikipedia.org/wiki/Rich_Text_Format) (RTF).
4949

50-
No Windows operating system is needed for usage because the resulting DOCX, ODT, or RTF files can be opened by all major [word processing softwares](http://en.wikipedia.org/wiki/List_of_word_processors).
51-
52-
PHPWord is an open source project licensed under LGPL version 3. PHPWord is [unit tested](https://travis-ci.org/PHPOffice/PHPWord) to make sure that the released versions are stable.
53-
54-
**Want to contribute?** [Fork us](https://github.com/PHPOffice/PHPWord/fork) or [submit](https://github.com/PHPOffice/PHPWord/issues) your bug reports or feature requests to us.
50+
PHPWord is an open source project licensed under the terms of [LGPL version 3](https://github.com/PHPOffice/PHPWord/blob/develop/LICENSE.md). PHPWord is aimed to be a high quality software product by incorporating [continuous integration](https://travis-ci.org/PHPOffice/PHPWord) and [unit testing](http://phpoffice.github.io/PHPWord/coverage/develop/). You can learn more about PHPWord by reading this Developers' Documentation and the [API Documentation](http://phpoffice.github.io/PHPWord/docs/develop/).
5551

5652
## Features
5753

@@ -142,6 +138,15 @@ Below are the supported features for each file formats.
142138
| **Bonus** | Encryption | | | |
143139
| | Protection | | | |
144140

141+
## Contributing
142+
143+
We welcome everyone to contribute to PHPWord. Below are some of the things that you can do to contribute:
144+
145+
- Read [our contributing guide](https://github.com/PHPOffice/PHPWord/blob/master/CONTRIBUTING.md)
146+
- [Fork us](https://github.com/PHPOffice/PHPWord/fork) and [request a pull](https://github.com/PHPOffice/PHPWord/pulls) to the [develop](https://github.com/PHPOffice/PHPWord/tree/develop) branch
147+
- Submit [bug reports or feature requests](https://github.com/PHPOffice/PHPWord/issues) to GitHub
148+
- Follow [@PHPWord](https://twitter.com/PHPWord) and [@PHPOffice](https://twitter.com/PHPOffice) on Twitter
149+
145150
# Installing/configuring
146151

147152
## Requirements
@@ -938,13 +943,18 @@ PHPWord requires PHP 5.3+ since 0.8, while PHPWord 0.6.3 from CodePlex can run w
938943

939944
# References
940945

946+
## ISO/IEC 29500, Third edition, 2012-09-01
947+
948+
- [Part 1: Fundamentals and Markup Language Reference](http://standards.iso.org/ittf/PubliclyAvailableStandards/c061750_ISO_IEC_29500-1_2012.zip)
949+
- [Part 2: Open Packaging Conventions](http://standards.iso.org/ittf/PubliclyAvailableStandards/c061796_ISO_IEC_29500-2_2012.zip)
950+
- [Part 3: Markup Compatibility and Extensibility](http://standards.iso.org/ittf/PubliclyAvailableStandards/c061797_ISO_IEC_29500-3_2012.zip)
951+
- [Part 4: Transitional Migration Features](http://standards.iso.org/ittf/PubliclyAvailableStandards/c061798_ISO_IEC_29500-4_2012.zip)
952+
941953
## Formal specifications
942954

943-
- [Office Open XML (OOXML) (ECMA-376) Schema](http://www.schemacentral.com/sc/ooxml/ss.html)
944-
- [Oasis OpenDocument Standard Version 1.2](http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os.html)
945-
- [Rich Text Format (RTF) Specification, version 1.9.1](http://www.microsoft.com/en-us/download/details.aspx?id=10725)
955+
- [Oasis OpenDocument Standard Version 1.2](http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os.html)
956+
- [Rich Text Format (RTF) Specification, version 1.9.1](http://www.microsoft.com/en-us/download/details.aspx?id=10725)
946957

947958
## Other resources
948959

949-
- [DocumentFormat.OpenXml.Wordprocessing Namespace on MSDN](http://msdn.microsoft.com/en-us/library/documentformat.openxml.wordprocessing%28v=office.14%29.aspx)
950-
960+
- [DocumentFormat.OpenXml.Wordprocessing Namespace on MSDN](http://msdn.microsoft.com/en-us/library/documentformat.openxml.wordprocessing%28v=office.14%29.aspx)

0 commit comments

Comments
 (0)