Skip to content

Commit a49618f

Browse files
committed
Don't hardcode version number in documentation
1 parent d59591b commit a49618f

File tree

2 files changed

+7
-24
lines changed

2 files changed

+7
-24
lines changed

README.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,20 +76,11 @@ To [add a dependency](https://getcomposer.org/doc/04-schema.md#package-links) to
7676

7777
Run the following to use the latest stable version
7878
```sh
79-
composer require phpoffice/phpword
79+
composer require phpoffice/phpword
8080
```
81-
or if you want the latest master version
81+
or if you want the latest develop version
8282
```sh
83-
composer require phpoffice/phpword:dev-master
84-
```
85-
86-
You can of course also manually edit your composer.json file
87-
```json
88-
{
89-
"require": {
90-
"phpoffice/phpword": "v0.18.*"
91-
}
92-
}
83+
composer require phpoffice/phpword:dev-develop
9384
```
9485

9586
## Getting started

docs/installing.rst

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,18 @@ You just need to `add dependency <https://getcomposer.org/doc/04-schema.md#packa
2828

2929
Example:
3030

31-
.. code-block:: json
31+
.. code-block:: bash
3232
33-
{
34-
"require": {
35-
"phpoffice/phpword": "v0.18.*"
36-
}
37-
}
33+
composer require phpoffice/phpword
3834
3935
If you are a developer or if you want to help us with testing then fetch the latest branch for developers.
4036
Notice: all contributions must be done against the developer branch.
4137

4238
Example:
4339

44-
.. code-block:: json
40+
.. code-block:: bash
4541
46-
{
47-
"require": {
48-
"phpoffice/phpword": "dev-develop"
49-
}
50-
}
42+
composer require phpoffice/phpword:dev-develop
5143
5244
Using samples
5345
-------------

0 commit comments

Comments
 (0)