Skip to content

Version 0.9.0 #177

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 103 commits into from
Mar 26, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
5bc74eb
ADDED : Docs
Progi1984 Mar 15, 2014
89aebc5
Version number: 0.7.0 > 0.8.0
ivanlanin Mar 15, 2014
0c5e405
Merge branch 'master' of github.com:PHPOffice/PHPWord into develop
gabrielbull Mar 15, 2014
3b7dac4
Refactored PHPWord_Exception to namespaces
gabrielbull Mar 15, 2014
f4d7fa4
Added PHP 5.6 to travis-ci and removed namespace checking before we m…
gabrielbull Mar 15, 2014
59eec58
Convert samples
ivanlanin Mar 15, 2014
b35a799
Check requirements
ivanlanin Mar 15, 2014
26483df
Closing bracket bug
ivanlanin Mar 15, 2014
9922f8e
Closing bracket. Again.
ivanlanin Mar 15, 2014
28fef5f
Bugfix on PHPWordTest
ivanlanin Mar 15, 2014
077d87d
New unit tests for Writer
ivanlanin Mar 16, 2014
18c1e5f
Additional template test
ivanlanin Mar 16, 2014
5bcd114
Merge pull request #138 from ivanlanin/develop
ivanlanin Mar 16, 2014
12a7977
Merge branch 'refs/heads/master' into develop
gabrielbull Mar 16, 2014
fca9e53
DocBlock corrections
ivanlanin Mar 17, 2014
cec16ce
Merge branch 'develop' into fancy-samples
ivanlanin Mar 17, 2014
78d718a
Fixed typo in variable name
gabrielbull Mar 17, 2014
1d1bb2d
Commented out some lines in the travis-ci config to see if we can pass
gabrielbull Mar 17, 2014
ef04433
Merge remote-tracking branch 'upstream/develop' into fancy-samples
ivanlanin Mar 17, 2014
e89f24f
Merge pull request #137 from ivanlanin/fancy-samples
ivanlanin Mar 17, 2014
47fa1f0
Bugfix: Preserve text doesn't render correctly when the text is not t…
ivanlanin Mar 17, 2014
510f9cd
https://github.com/PHPOffice/PHPWord/issues/58
Mar 17, 2014
b32c198
https://github.com/PHPOffice/PHPWord/issues/58
Mar 18, 2014
51ced7d
https://github.com/PHPOffice/PHPWord/issues/58 Part III.
Mar 18, 2014
4e546d1
https://github.com/PHPOffice/PHPWord/issues/58 - Part IV.
Mar 19, 2014
855b36b
Table of differences between Writers (and Readers) #82
ivanlanin Mar 19, 2014
741ca2b
Add file formats support section in docs/intro.rst #82
ivanlanin Mar 19, 2014
32ed6a3
https://github.com/PHPOffice/PHPWord/issues/58 - Part V (IOFactory).
Mar 19, 2014
23c8a11
Documentation updates
ivanlanin Mar 19, 2014
7e3f776
Documentation updates
ivanlanin Mar 19, 2014
e3ea166
Documentation updates
ivanlanin Mar 19, 2014
1661da2
Documentation updates
ivanlanin Mar 20, 2014
8267a9e
https://github.com/PHPOffice/PHPWord/issues/58 - Part VI (PhpWord).
Mar 20, 2014
d51cb0e
https://github.com/PHPOffice/PHPWord/issues/58 - Part VII (supported …
Mar 20, 2014
90a1188
https://github.com/PHPOffice/PHPWord/issues/58 - Part VI (lost changes).
Mar 20, 2014
9bfa82e
#82 Documentation with a table with differences between features
Progi1984 Mar 20, 2014
7599115
Changed PHPWord image
gabrielbull Mar 20, 2014
38a4eb7
Changed logo for a logo that would not infringe Microsoft's copyright
gabrielbull Mar 20, 2014
0bd29cb
Simplify README.md and move the full documentation to RST.
ivanlanin Mar 20, 2014
676666f
Add simple FAQ
ivanlanin Mar 20, 2014
aec8d9f
IMPROVED : Docs Syntax Highlighting
Progi1984 Mar 21, 2014
f8a067f
IMPROVED : Docs Syntax Highlighting
Progi1984 Mar 21, 2014
ca4dc46
IMPROVED : Docs Syntax Highlighting
Progi1984 Mar 21, 2014
5d70498
IMPROVED : Docs Syntax Highlighting
Progi1984 Mar 21, 2014
7bf7660
IMPROVED : Docs Syntax Highlighting
Progi1984 Mar 21, 2014
ab96c75
https://github.com/PHPOffice/PHPWord/issues/58 - Part VIII (Autoloader).
Mar 22, 2014
667d0aa
https://github.com/PHPOffice/PHPWord/issues/58 - Part VIII (Autoloader).
Mar 22, 2014
df8a45e
#82 : Add table of features
Progi1984 Mar 22, 2014
309a025
#82 : Fixed some errors for the PDF Generation
Progi1984 Mar 22, 2014
dc28fd6
Update .gitignore to test workaround for RTFD
ivanlanin Mar 22, 2014
9c6d07a
https://github.com/PHPOffice/PHPWord/issues/58 - autoloading fix.
Mar 22, 2014
0c449a6
https://github.com/PHPOffice/PHPWord/issues/58 - fixes for samples.
Mar 22, 2014
7e23484
https://github.com/PHPOffice/PHPWord/issues/58 - fix for ZipArchive c…
Mar 22, 2014
8a54b22
(1) Change CHANGELOG format to simplify release notes creation (2) Ad…
ivanlanin Mar 23, 2014
ddb6277
https://github.com/PHPOffice/PHPWord/issues/58 - More fixes.
Mar 23, 2014
c305273
https://github.com/PHPOffice/PHPWord/issues/58 - PNG filename fix.
Mar 23, 2014
c7f03ec
#159 #58 Merge branch 'develop' of https://github.com/RomanSyroeshko/…
ivanlanin Mar 23, 2014
59efe33
Fix test
ivanlanin Mar 23, 2014
5a84f99
Update Travis
ivanlanin Mar 23, 2014
05aaad8
FIXED : Travis-CI (/home/travis/build.sh: line 215: phpcs: command no…
Progi1984 Mar 23, 2014
cd0db89
Update .travis.yml
ivanlanin Mar 23, 2014
4228602
FIXED : Validation of composer.json (composer validate) after Packagi…
Progi1984 Mar 23, 2014
e893b35
Renamed Tests to test
gabrielbull Mar 23, 2014
a7444cb
Changed tests namespace to reflect the namespace of the source code
gabrielbull Mar 23, 2014
421b6e6
Made autoloader PSR-4 compliant and removed PHPWORD_BASE_DIR global c…
gabrielbull Mar 23, 2014
66c73c0
Fixed exceptions in reader/writer
gabrielbull Mar 23, 2014
d75c00c
Fixed unit tests
gabrielbull Mar 23, 2014
29d9a21
Removed files from gitignore
gabrielbull Mar 23, 2014
d7a66ca
Removed CodeSniffer from travis because we are not passing it
gabrielbull Mar 23, 2014
aff112a
Method name & code format for PSR/phpdoc compliance
ivanlanin Mar 23, 2014
db57346
Reactivate CodeSniffer for both src and test. PSR-2 has included PSR-1.
ivanlanin Mar 23, 2014
b24550d
Merge Table and TableFull style
ivanlanin Mar 24, 2014
3830df5
Merge branch 'refs/heads/develop'
gabrielbull Mar 24, 2014
5dac76a
Changed travis icon to SVG for us, poor souls with retina displays
gabrielbull Mar 24, 2014
286d37c
Changed PHPWord logo to SVG
gabrielbull Mar 24, 2014
eed86f3
Merge MemoryImage with Image, but left addMemoryImage for backward co…
ivanlanin Mar 24, 2014
626902d
Renamed test directory to tests
gabrielbull Mar 24, 2014
57ff17e
Changed test directory in travis config
gabrielbull Mar 24, 2014
e6466f0
Changed travis branch in read me to master
gabrielbull Mar 24, 2014
ecdaeef
More unit tests
ivanlanin Mar 24, 2014
92a76d0
Merge branch 'develop' into #160-refactoring
ivanlanin Mar 25, 2014
841157e
Delete MemoryImageTest.php and TableFullTest.php
ivanlanin Mar 25, 2014
3b020f6
Update documentation
ivanlanin Mar 25, 2014
8aba90d
Change exception type
ivanlanin Mar 25, 2014
db2460f
Update Readme.MD for improving the first introduction
Progi1984 Mar 25, 2014
e802ea3
Update Readme.MD for moving link for docs & fork
Progi1984 Mar 25, 2014
a0e8b43
https://github.com/PHPOffice/PHPWord/issues/58 - "\PhpOffice\PhpWord\…
Mar 25, 2014
c76b618
Merge pull request #171 from RomanSyroeshko/develop
Mar 25, 2014
6b17492
https://github.com/PHPOffice/PHPWord/issues/58 - fix for unit tests.
Mar 25, 2014
300ac8b
Merge pull request #172 from RomanSyroeshko/develop
Mar 25, 2014
4261f5a
https://github.com/PHPOffice/PHPWord/issues/58 - fix for tests #2.
Mar 25, 2014
e607c3f
Merge pull request #173 from RomanSyroeshko/develop
Mar 25, 2014
efa77ef
https://github.com/PHPOffice/PHPWord/issues/58 - fix for tests #3.
Mar 25, 2014
31dc246
Merge pull request #175 from RomanSyroeshko/develop
Mar 25, 2014
0da5eb1
Fix for tests #4.
Mar 25, 2014
4aeef04
Fix for tests 5.
Mar 25, 2014
2d7126e
FIXED: ERROR - Expected 1 newline at end of file.
Mar 25, 2014
3055a0e
Merge remote-tracking branch 'upstream/develop' into #160-refactoring
ivanlanin Mar 26, 2014
004edd5
Merge pull request #169 from ivanlanin/#160-refactoring
ivanlanin Mar 26, 2014
dfccd54
Update README.md, docs, and version number
ivanlanin Mar 26, 2014
b04eb6c
Merge pull request #176 from ivanlanin/develop
ivanlanin Mar 26, 2014
c72dc68
Revert project name capitalization #176
ivanlanin Mar 26, 2014
72bb688
Merge remote-tracking branch 'upstream/develop' into develop
ivanlanin Mar 26, 2014
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,12 @@
Thumbs.db
Desktop.ini
.idea
_build
phpunit.xml
composer.lock
composer.phar
vendor
/report
/.settings
/.buildpath
/.project
/docs
*.odt
*.docx
*.rtf
*.txt
*.xml
/.project
39 changes: 21 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,49 @@
language: php

php:
- 5.3.3
- 5.3
- 5.4
- 5.5
## @reference https://github.com/travis-ci/travis-ci/issues/1749
- 5.6
- hhvm

matrix:
allow_failures:
- php: 5.3.3
- php: 5.6
- php: hhvm

before_script:
## Composer
- curl -s http://getcomposer.org/installer | php
- php composer.phar install --prefer-source
# - curl -s http://getcomposer.org/installer | php
# - php composer.phar install --prefer-source
- composer install --prefer-source
- composer selfupdate --quiet
## PHP_CodeSniffer
- pyrus install pear/PHP_CodeSniffer
- phpenv rehash
## PHP Copy/Paste Detector
- curl -o phpcpd.phar https://phar.phpunit.de/phpcpd.phar
#- curl -o phpcpd.phar https://phar.phpunit.de/phpcpd.phar
## PHP Mess Detector
- pear config-set preferred_state beta
- printf "\n" | pecl install imagick
#- pear config-set preferred_state beta
#- printf "\n" | pecl install imagick
#- pear channel-discover pear.phpmd.org
#- pear channel-discover pear.pdepend.org
#- pear install --alldeps phpmd/PHP_PMD
- phpenv rehash
#- phpenv rehash
## PHPLOC
- curl -o phploc.phar https://phar.phpunit.de/phploc.phar
#- curl -o phploc.phar https://phar.phpunit.de/phploc.phar

script:
## PHP_CodeSniffer
- phpcs --standard=PSR1 Classes/
- phpcs --standard=PSR2 Classes/
- phpcs --standard=PSR2 -n src/
- phpcs --standard=PSR2 -n tests/
## PHP Copy/Paste Detector
- php phpcpd.phar --verbose Classes/
#- php phpcpd.phar --verbose src/
## PHP Mess Detector
#- phpmd Classes/ text unusedcode,naming,design
#- phpmd src/ text unusedcode,naming,design
## PHPLOC
- php phploc.phar Classes/
#- php phploc.phar src/
## PHPUnit
- phpunit -c ./ --coverage-text

notifications:
email:
- [email protected]
111 changes: 111 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
# Changelog

This is the changelog between releases of PHPWord. Releases are listed in reverse chronological order with the latest version listed on top, while additions/changes in each release are listed in chronological order. Changes in each release are divided into three parts: added or change features, bugfixes, and miscellaneous improvements. Each line contains short information about the change made, the person who made it, and the related issue number(s) in GitHub.

## 0.9.0 - Not yet released

This release marked the transformation to namespaces (PHP 5.3+).

### Features

- Image: Ability to use remote or GD images using `addImage()` on sections, headers, footer, cells, and textruns - @ivanlanin
- Header: Ability to use remote or GD images using `addWatermark()` - @ivanlanin

### Bugfixes

- Preserve text doesn't render correctly when the text is not the first word, e.g. 'Page {PAGE}' - @ivanlanin

### Miscellaneous

- Move documentation to [Read The Docs](http://phpword.readthedocs.org/en/develop/) - @Progi1984 @ivanlanin GH-82
- Reorganize and redesign samples folder - @ivanlanin GH-137
- Use `PhpOffice\PhpWord` namespace for PSR compliance - @RomanSyroeshko @gabrielbull GH-159 GH-58
- Restructure folders and change folder name `Classes` to `src` and `Tests` to `test` for PSR compliance - @RomanSyroeshko @gabrielbull
- Compliance to phpDocumentor - @ivanlanin
- Merge Style\TableFull into Style\Table. Style\TableFull is deprecated - @ivanlanin GH-160
- Merge Section\MemoryImage into Section\Image. Section\Image is deprecated - @ivanlanin GH-160

## 0.8.1 - 17 Mar 2014

This is a bugfix release for image detection functionality.

- Added fallback for computers that do not have exif_imagetype - @bskrtich, @gabrielbull

## 0.8.0 - 15 Mar 2014

This release merged a lot of improvements from the community. Unit tests introduced in this release and has reached 90% code coverage.

### Features

- Template: Permit to save a template generated as a file (PHPWord_Template::saveAs()) - @RomanSyroeshko GH-56 GH-57
- Word2007: Support sections page numbering - @gabrielbull
- Word2007: Added line height methods to mirror the line height settings in Word in the paragraph styling - @gabrielbull
- Word2007: Added support for page header & page footer height - @JillElaine GH-5
- General: Add ability to manage line breaks after image insertion - @bskrtich GH-6 GH-66 GH-84
- Template: Ability to limit number of replacements performed by setValue() method of Template class - @RomanSyroeshko GH-52 GH-53 GH-85
- Table row: Repeat as header row & allow row to break across pages - @ivanlanin GH-48 GH-86
- Table: Table width in percentage - @ivanlanin GH-48 GH-86
- Font: Superscript and subscript - @ivanlanin GH-48 GH-86
- Paragraph: Hanging paragraph - @ivanlanin GH-48 GH-86
- Section: Multicolumn and section break - @ivanlanin GH-48 GH-86
- Template: Ability to apply XSL style sheet to Template - @RomanSyroeshko GH-46 GH-47 GH-83
- General: PHPWord_Shared_Font::pointSizeToTwips() converter - @ivanlanin GH-87
- Paragraph: Ability to define normal paragraph style with PHPWord::setNormalStyle() - @ivanlanin GH-87
- Paragraph: Ability to define parent style (basedOn) and style for following paragraph (next) - @ivanlanin GH-87
- Clone table rows on the fly when using a template document - @jeroenmoors GH-44 GH-88
- Initial addition of basic footnote support - @deds GH-16
- Paragraph: Ability to define paragraph pagination: widow control, keep next, keep lines, and page break before - @ivanlanin GH-92
- General: PHPWord_Style_Font refactoring - @ivanlanin GH-93
- Font: Use points instead of halfpoints internally. Conversion to halfpoints done during XML Writing. - @ivanlanin GH-93
- Paragraph: setTabs() function - @ivanlanin GH-92
- General: Basic support for TextRun on ODT and RTF - @ivanlanin GH-99
- Reader: Basic Reader for Word2007 - @ivanlanin GH-104
- TextRun: Allow Text Break in Text Run - @bskrtich GH-109
- General: Support for East Asian fontstyle - @jhfangying GH-111 GH-118
- Image: Use exif_imagetype to check image format instead of extension name - @gabrielbull GH-114
- General: Setting for XMLWriter Compatibility option - @bskrtich GH-103
- MemoryImage: Allow remote image when allow_url_open = on - @ivanlanin GH-122
- TextBreak: Allow font and paragraph style for text break - @ivanlanin GH-18

### Bugfixes

- Fixed bug with cell styling - @gabrielbull
- Fixed bug list items inside of cells - @gabrielbull
- Adding a value that contains "&" in a template breaks it - @SiebelsTim GH-51
- Example in README.md is broken - @Progi1984 GH-89
- General: PHPWord_Shared_Drawing::centimetersToPixels() conversion - @ivanlanin GH-94
- Footnote: Corrupt DOCX reported by MS Word when sections > 1 and not every sections have footnote - @ivanlanin GH-125

### Miscellaneous

- UnitTests - @Progi1984

## 0.7.0 - 28 Jan 2014

This is the first release after a long development hiatus in [CodePlex](https://phpword.codeplex.com/). This release initialized ODT and RTF Writer, along with some other new features for the existing Word2007 Writer, e.g. tab, multiple header, rowspan and colspan. [Composer](https://packagist.org/packages/phpoffice/phpword) and [Travis](https://travis-ci.org/PHPOffice/PHPWord) were added.

### Features

- Implement RTF Writer - @Progi1984 GH-1
- Implement ODT Writer - @Progi1984 GH-2
- Word2007: Add rowspan and colspan to cells - @kaystrobach
- Word2007: Support for tab stops - @RLovelett
- Word2007: Support Multiple headers - @RLovelett
- Word2007: Wrapping Styles to Images - @gabrielbull
- Added support for image wrapping style - @gabrielbull

### Bugfixes

- "Warning: Invalid error type specified in ...\PHPWord.php on line 226" is thrown when the specified template file is not found - @RomanSyroeshko GH-32
- PHPWord_Shared_String.IsUTF8 returns FALSE for Cyrillic UTF-8 input - @RomanSyroeshko GH-34
- Temporary files naming logic in PHPWord_Template can lead to a collision - @RomanSyroeshko GH-38

### Miscellaneous

- Add superscript/subscript styling in Excel2007 Writer - @MarkBaker
- add indentation support to paragraphs - @deds
- Support for Composer - @Progi1984 GH-27
- Basic CI with Travis - @Progi1984
- Added PHPWord_Exception and exception when could not copy the template - @Progi1984
- IMPROVED: Moved examples out of Classes directory - @Progi1984
- IMPROVED: Advanced string replace in setValue for Template - @Esmeraldo CP-49
14 changes: 14 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Contributing to PHPWord

PHPWord is build by the crowd and for the crowd. Every contributions are welcomed; either by [submitting](https://github.com/PHPOffice/PHPWord/issues) bug issues or suggesting improvements, or in a more active form like [requesting](https://github.com/PHPOffice/PHPWord/pulls) a pull.

We want to create a high quality document writer and reader library that people can use with more confidence and less bugs. We want to collaborate happily, code joyfully, and get a life merrily. Thus, below are some guidelines that we expect to be followed by each contributor.

- **Be brief, but be bold**: State your issues briefly, but speak out your ideas loudly, even if you can't or don't know how to implement it right away. The world will be better with limitless innovations.
- **Code in PSR**: We use PHP Standards Recommendation (PSR) from as the PHP Framework Interoperability Group (PHP-FIG). If you're not familiar with this standard, please [familiarize yourself now](https://github.com/php-fig/fig-standards). Use [PHPCodeSniffer](http://pear.php.net/package/PHP_CodeSniffer/) to check your code against this standard.
- **Test your code**: Nobody else knows your code better than you. So, please, test your own code before submitting your pull request. PHPWord uses [PHPUnit](http://phpunit.de/) as our testing framework.
- **Request pull in separate branch**: Do not submit your request to the master branch, but create a separate branch named specifically for the issue that you addressed. Read [GitHub manual](https://help.github.com/articles/using-pull-requests) to find out more about this. If you are new to GitHub, read [this short manual](https://help.github.com/articles/fork-a-repo) to get you familiar with forks and how git works in general.

That's it. Thank you for your interest in PHPWord, and welcome!

May the Force be with you.
Loading