Skip to content

Commit 86115b9

Browse files
committed
update installation instructions
1 parent 3b6f9ce commit 86115b9

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,18 @@ PHPWord requires the following:
6767
## Installation
6868

6969
PHPWord is installed via [Composer](https://getcomposer.org/).
70-
You just need to [add dependency](https://getcomposer.org/doc/04-schema.md#package-links>) on PHPWord into your package.
70+
To [add a dependency](https://getcomposer.org/doc/04-schema.md#package-links>) to PHPWord in your project, either
7171

72-
Example:
72+
Run the following to use the latest stable version
73+
```sh
74+
composer require phpoffice/phpword
75+
```
76+
or if you want the latest master version
77+
```sh
78+
composer require phpoffice/phpword:dev-master
79+
```
7380

81+
You can of course also manually edit your composer.json file
7482
```json
7583
{
7684
"require": {

0 commit comments

Comments
 (0)