Skip to content

Commit 364131a

Browse files
author
Bas-Jan 't Jong
committed
Added TextBox functionality
1 parent ce85cc5 commit 364131a

File tree

267 files changed

+7550
-734
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

267 files changed

+7550
-734
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
.Trashes
55
Thumbs.db
66
Desktop.ini
7-
composer.lock
87
composer.phar
98
phpunit.xml
109
/.buildpath

.scrutinizer.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
filter:
2+
excluded_paths: [ 'vendor/*', 'tests/*', 'samples/*', 'src/PhpWord/Shared/PCLZip/*' ]
3+
4+
before_commands:
5+
- "composer self-update"
6+
- "composer install --prefer-source --dev"
7+
8+
tools:
9+
php_code_coverage:
10+
enabled: true
11+
test_command: phpunit -c phpunit.xml.dist
12+
php_sim: true
13+
php_pdepend: true
14+
php_analyzer: true

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ script:
5858
## PHPUnit
5959
- phpunit -c ./ --coverage-text --coverage-html ./build/coverage
6060
## PHPDocumentor
61-
- vendor/bin/phpdoc.php -d ./src -t ./build/docs -i ./src/PhpWord/Shared/PCLZip/*
61+
- vendor/bin/phpdoc.php -d ./src -t ./build/docs --ignore "*/src/PhpWord/Shared/PCLZip/*" --template="responsive-twig"
6262

6363
after_script:
6464
## PHPDocumentor

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This release changed PHPWord license from LGPL 2.1 to LGPL 3.
1313

1414
### Bugfixes
1515

16-
- ...
16+
- Header: All images added to the second header were assigned to the first header - @basjan GH-222
1717

1818
### Deprecated
1919

@@ -26,6 +26,8 @@ This release changed PHPWord license from LGPL 2.1 to LGPL 3.
2626
- Refactor: Replace static classes `Footnotes`, `Endnotes`, and `TOC` with `Collections` - @ivanlanin GH-206
2727
- QA: Reactivate `phpcpd` and `phpmd` on Travis - @ivanlanin
2828
- Refactor: PHPMD recommendation: Change all `get...` method that returns `boolean` into `is...` or `has...` - @ivanlanin
29+
- Docs: Create gh-pages branch for API documentation - @Progi1984 GH-154
30+
- QA: Add `.scrutinizer.yml` and include `composer.lock` for preparation to Scrutinizer - @ivanlanin GH-186
2931

3032
## 0.10.0 - 4 May 2014
3133

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

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"homepage": "http://phpoffice.github.io",
1010
"type": "library",
11-
"license": "LGPL",
11+
"license": "LGPL-3.0",
1212
"authors": [
1313
{
1414
"name": "Mark Baker"

0 commit comments

Comments
 (0)