Skip to content

Commit f6ca403

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into simplified-docblock
2 parents a6568e9 + c6fc1d4 commit f6ca403

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
lines changed

CHANGELOG.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22

33
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.
44

5-
## 0.9.0 - Not yet released
5+
## 0.9.1 - 27 Mar 2014
6+
7+
This is a bugfix release for PSR-4 compatibility.
8+
9+
- Fixed PSR-4 composer autoloader - @AntonTyutin
10+
11+
## 0.9.0 - 26 Mar 2014
612

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

README.md

+12-5
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ With PHPWord, you can create DOCX, ODT, or RTF documents dynamically using your
2929
* Use XSL 1.0 style sheets to transform main document part of OOXML template
3030
* ... and many more features on progress
3131

32+
__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.
33+
3234
## Requirements
3335
* PHP 5.3+
3436
* PHP [Zip](http://php.net/manual/en/book.zip.php) extension
@@ -52,14 +54,19 @@ the following lines to your ``composer.json``.
5254
}
5355
```
5456

57+
Alternatively, you can download the latest release from the [releases page](https://github.com/PHPOffice/PHPWord/releases).
58+
In this case, you will have to register the autoloader.
59+
60+
```php
61+
require_once 'path/to/PhpWord/src/PhpWord/Autoloader.php';
62+
PhpOffice\PhpWord\Autoloader::register();
63+
```
64+
5565
## Basic usage
5666

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

5969
```php
60-
require_once 'src/PhpWord/Autoloader.php';
61-
PhpOffice\PhpWord\Autoloader::register();
62-
6370
$phpWord = new \PhpOffice\PhpWord\PhpWord();
6471

6572
// Every element you want to append to the word document is placed in a section.
@@ -99,6 +106,6 @@ $objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'RTF');
99106
$objWriter->save('helloWorld.rtf');
100107
```
101108

102-
__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.
109+
## Documentation
103110

104-
__Want to know more?__ Read the full documentation of PHPWord on [Read The Docs](http://phpword.readthedocs.org/en/develop/).
111+
__Want to know more?__ Read the full documentation of PHPWord on [Read The Docs](http://phpword.readthedocs.org/).

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
},
4343
"autoload": {
4444
"psr-4": {
45-
"PhpOffice\\PhpWord\\": "src/"
45+
"PhpOffice\\PhpWord\\": "src/PhpWord"
4646
}
4747
}
48-
}
48+
}

0 commit comments

Comments
 (0)