Skip to content

Commit 72455fe

Browse files
author
Rolf den Hartog
authored
Update getting-started.rst
You can require a dependency in one command by using `composer require vendor/package` instead of doing two things (changing composer.json and executing a command). See https://getcomposer.org/doc/03-cli.md#require
1 parent 41892d5 commit 72455fe

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

docs/getting-started.rst

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,6 @@ Installation
66
^^^^^^^^^^^^
77
Library can be installed using Composer like so:
88

9-
1. define the dependencies in your ``composer.json``:
10-
11-
.. code-block:: json
12-
13-
{
14-
"require": {
15-
"mindplay/annotations": "~1.2"
16-
}
17-
}
18-
19-
2. install/update your vendors:
20-
219
.. code-block:: bash
2210
23-
$ curl http://getcomposer.org/installer | php
24-
$ php composer.phar install
11+
$ composer require mindplay/annotations

0 commit comments

Comments
 (0)