update installation instructions
This commit is contained in:
parent
3b6f9cea21
commit
86115b9e2d
12
README.md
12
README.md
|
|
@ -67,10 +67,18 @@ PHPWord requires the following:
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
PHPWord is installed via [Composer](https://getcomposer.org/).
|
PHPWord is installed via [Composer](https://getcomposer.org/).
|
||||||
You just need to [add dependency](https://getcomposer.org/doc/04-schema.md#package-links>) on PHPWord into your package.
|
To [add a dependency](https://getcomposer.org/doc/04-schema.md#package-links>) to PHPWord in your project, either
|
||||||
|
|
||||||
Example:
|
Run the following to use the latest stable version
|
||||||
|
```sh
|
||||||
|
composer require phpoffice/phpword
|
||||||
|
```
|
||||||
|
or if you want the latest master version
|
||||||
|
```sh
|
||||||
|
composer require phpoffice/phpword:dev-master
|
||||||
|
```
|
||||||
|
|
||||||
|
You can of course also manually edit your composer.json file
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"require": {
|
"require": {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue