Skip to content

Commit 343f378

Browse files
author
Bas-Jan 't Jong
committed
Merge branch 'develop' of https://github.com/PHPOffice/PHPWord.git into develop
2 parents 5aac7f4 + 5188b36 commit 343f378

File tree

188 files changed

+4859
-2406
lines changed

Some content is hidden

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

188 files changed

+4859
-2406
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Thumbs.db
66
Desktop.ini
77
composer.phar
88
phpunit.xml
9+
phpword.ini
910
/.buildpath
1011
/.idea
1112
/.project

.scrutinizer.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ tools:
99
enabled: true
1010
config:
1111
standard: PSR2
12-
php_cpd: true
1312
php_mess_detector:
1413
enabled: true
1514
config:
1615
ruleset: phpmd.xml.dist
1716
external_code_coverage:
1817
enabled: true
1918
timeout: 900
20-
php_sim:
21-
min_mass: 30
19+
php_cpd: true
20+
# php_sim: # Temporarily disabled to allow focus on things other than duplicates
21+
# min_mass: 40
2222
php_pdepend: true
2323
php_analyzer: true
2424
sensiolabs_security_checker: true

.travis.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ php:
1010

1111
matrix:
1212
allow_failures:
13-
- php: 5.3.3
14-
- php: 5.6
1513
- php: hhvm
1614

1715
env:
@@ -23,14 +21,8 @@ before_script:
2321
- sudo apt-get -qq update > /dev/null
2422
- sudo apt-get -qq install graphviz > /dev/null
2523
## Composer
26-
# - curl -s http://getcomposer.org/installer | php
27-
# - php composer.phar install --prefer-source
2824
- composer self-update
29-
- composer require dompdf/dompdf:0.6.*
3025
- composer install --prefer-source --dev
31-
## PHP_CodeSniffer
32-
- pyrus install pear/PHP_CodeSniffer
33-
- phpenv rehash
3426
## PHP Copy/Paste Detector
3527
- curl -o phpcpd.phar https://phar.phpunit.de/phpcpd.phar
3628
## PHP Mess Detector
@@ -48,7 +40,7 @@ before_script:
4840

4941
script:
5042
## PHP_CodeSniffer
51-
- phpcs src/ tests/ --standard=PSR2 -n --ignore=src/PhpWord/Shared/PCLZip
43+
- ./vendor/bin/phpcs src/ tests/ --standard=PSR2 -n --ignore=src/PhpWord/Shared/PCLZip
5244
## PHP Copy/Paste Detector
5345
- php phpcpd.phar src/ tests/ --verbose
5446
## PHP Mess Detector
@@ -58,7 +50,7 @@ script:
5850
## PHPUnit
5951
- phpunit -c ./ --coverage-text --coverage-html ./build/coverage
6052
## PHPDocumentor
61-
- vendor/bin/phpdoc.php -d ./src -t ./build/docs --ignore "*/src/PhpWord/Shared/PCLZip/*" --template="responsive-twig"
53+
- vendor/bin/phpdoc.php -d ./src -t ./build/docs --ignore "*/src/PhpWord/Shared/*/*" --template="responsive-twig"
6254

6355
after_script:
6456
## PHPDocumentor

CHANGELOG.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This is the changelog between releases of PHPWord. Releases are listed in revers
44

55
## 0.11.0 - Not yet released
66

7-
This release changed PHPWord license from LGPL 2.1 to LGPL 3.
7+
This release marked the change of PHPWord license from LGPL 2.1 to LGPL 3; new relative and absolute positioning for image; new `TextBox` and `ListItemRun` element; refactorings of writer classes into parts, elements, and styles; and ability to add elements to PHPWord object via HTML.
88

99
### Features
1010

@@ -15,17 +15,30 @@ This release changed PHPWord license from LGPL 2.1 to LGPL 3.
1515
- HTML: Ability to add elements to PHPWord object via html - @basjan GH-231
1616
- ListItemRun: New element that can add a list item with inline formatting like a textrun - @basjan GH-235
1717
- Table: Ability to add table inside a cell (nested table) - @ivanlanin GH-149
18+
- RTF Writer: UTF8 support for RTF: Internal UTF8 text is converted to Unicode before writing - @ivanlanin GH-158
19+
- Table: Ability to define table width (in percent and twip) and position - @ivanlanin GH-237
20+
- RTF Writer: Ability to add links and page breaks in RTF - @ivanlanin GH-196
21+
- ListItemRun: Remove fontStyle parameter because ListItemRun is inherited from TextRun and TextRun doesn't have fontStyle - @ivanlanin
22+
- Config: Ability to use a config file to store various common settings - @ivanlanin GH-200
23+
- ODT Writer: Enable inline font style in TextRun - @ivanlanin
24+
- ODT Writer: Enable underline, strike/doublestrike, smallcaps/allcaps, superscript/subscript font style - @ivanlanin
25+
- ODT Writer: Enable section and column - @ivanlanin
26+
- PDF Writer: Add TCPDF and mPDF as optional PDF renderer library - @ivanlanin
27+
- ODT Writer: Enable title element and custom document properties - @ivanlanin
28+
- ODT Reader: Ability to read standard and custom document properties - @ivanlanin
1829

1930
### Bugfixes
2031

2132
- Header: All images added to the second header were assigned to the first header - @basjan GH-222
2233
- Conversion: Fix conversion from cm to pixel, pixel to cm, and pixel to point - @basjan GH-233 GH-234
34+
- PageBreak: Page break adds new line in the beginning of the new page - @ivanlanin GH-150
2335

2436
### Deprecated
2537

2638
- Static classes `Footnotes`, `Endnotes`, and `TOC`
2739
- `Writer\Word2007\Part`: `Numbering::writeNumbering()`, `Settings::writeSettings()`, `WebSettings::writeWebSettings()`, `ContentTypes::writeContentTypes()`, `Styles::writeStyles()`, `Document::writeDocument()` all changed into `write()`
2840
- `Writer\Word2007\Part\DocProps`: Split into `Writer\Word2007\Part\DocPropsCore` and `Writer\Word2007\Part\DocPropsApp`
41+
- `Element\Title::getBookmarkId()` replaced by `Element\Title::getRelationId()`
2942

3043
### Miscellaneous
3144

@@ -38,6 +51,8 @@ This release changed PHPWord license from LGPL 2.1 to LGPL 3.
3851
- QA: Add `.scrutinizer.yml` and include `composer.lock` for preparation to Scrutinizer - @ivanlanin GH-186
3952
- Writer: Refactor writer parts using composite pattern - @ivanlanin
4053
- Docs: Show code quality and test code coverage badge on README
54+
- Style: Change behaviour of `set...` function of boolean properties; when none is defined, assumed true - @ivanlanin
55+
- Shared: Unify PHP ZipArchive and PCLZip features into PhpWord ZipArchive - @ivanlanin
4156

4257
## 0.10.0 - 4 May 2014
4358

composer.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,18 @@
3333
],
3434
"require": {
3535
"php": ">=5.3.3",
36-
"ext-xml": "*",
37-
"ext-zip": "*"
36+
"ext-xml": "*"
3837
},
3938
"require-dev": {
4039
"phpunit/phpunit": "3.7.*",
41-
"phpdocumentor/phpdocumentor":"2.*"
40+
"phpdocumentor/phpdocumentor":"2.*",
41+
"squizlabs/php_codesniffer": "1.*",
42+
"dompdf/dompdf":"0.6.*",
43+
"tecnick.com/tcpdf": "6.*",
44+
"mpdf/mpdf": "5.*"
4245
},
4346
"suggest": {
47+
"ext-zip": "Used to create docx files",
4448
"ext-gd2": "Required to add images",
4549
"ext-xmlwriter": "Required to write DOCX and ODT",
4650
"ext-xsl": "Required to apply XSL style sheet to template part",

composer.lock

Lines changed: 184 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)