Don't hardcode version number in documentation

This commit is contained in:
Adrien Crivelli 2022-09-16 14:23:58 +02:00
parent d59591b7ab
commit a49618f248
No known key found for this signature in database
GPG Key ID: 16D79B903B4B5874
2 changed files with 7 additions and 24 deletions

View File

@ -78,18 +78,9 @@ Run the following to use the latest stable version
```sh
composer require phpoffice/phpword
```
or if you want the latest master version
or if you want the latest develop version
```sh
composer require phpoffice/phpword:dev-master
```
You can of course also manually edit your composer.json file
```json
{
"require": {
"phpoffice/phpword": "v0.18.*"
}
}
composer require phpoffice/phpword:dev-develop
```
## Getting started

View File

@ -28,26 +28,18 @@ You just need to `add dependency <https://getcomposer.org/doc/04-schema.md#packa
Example:
.. code-block:: json
.. code-block:: bash
{
"require": {
"phpoffice/phpword": "v0.18.*"
}
}
composer require phpoffice/phpword
If you are a developer or if you want to help us with testing then fetch the latest branch for developers.
Notice: all contributions must be done against the developer branch.
Example:
.. code-block:: json
.. code-block:: bash
{
"require": {
"phpoffice/phpword": "dev-develop"
}
}
composer require phpoffice/phpword:dev-develop
Using samples
-------------