@@ -13,9 +13,9 @@ As a result, unless a bug is present only in the PHP version, pull requests
1313are unlikely to be accepted unless they are themselves direct transliterations
1414of bugfixes in the Python version.
1515
16- **This port has been marked version 1.0.0 **. It is based on the Python version at
17- commit `3e0b80a32c8478c076171e0cffcf754141a9950d
18- <https://github.com/docopt/docopt/commit/3e0b80a32c8478c076171e0cffcf754141a9950d > `_
16+ **This port has been marked version 1.0 **. It is based on the Python version at
17+ commit `463d780a698cbacb1cf5590ae849b8f890baf25d
18+ <https://github.com/docopt/docopt/commit/463d780a698cbacb1cf5590ae849b8f890baf25d > `_
1919(labelled **0.6.1 **).
2020
2121It has been quite stable for a long time and has barely been changed. The Python version
@@ -56,22 +56,22 @@ and instead can write only the help message--*the way you want it*.
5656 <?php
5757 $doc = <<<DOC
5858 Naval Fate.
59-
59+
6060 Usage:
6161 naval_fate.php ship new <name >...
6262 naval_fate.php ship <name > move <x > <y > [--speed=<kn >]
6363 naval_fate.php ship shoot <x > <y >
6464 naval_fate.php mine (set|remove) <x > <y > [--moored | --drifting]
6565 naval_fate.php (-h | --help)
6666 naval_fate.php --version
67-
67+
6868 Options:
6969 -h --help Show this screen.
7070 --version Show version.
7171 --speed=<kn > Speed in knots [default: 10].
7272 --moored Moored (anchored) mine.
7373 --drifting Drifting mine.
74-
74+
7575 DOC;
7676
7777 require('path/to/src/docopt.php');
@@ -92,21 +92,9 @@ information in it to make a parser*.
9292Installation
9393======================================================================
9494
95- ``docopt.php `` is available on `Packagist <http://packagist.org/packages/docopt/docopt >`_.
96- Create a ``composer.json `` file for your project
97-
98- .. code-block :: javascript
99-
100- {
101- " require" : {
102- " docopt/docopt" : " 1.0.0"
103- }
104- }
105-
106- Install using composer::
107-
108- php composer.phar install
95+ Install ``docopt.php `` using `Composer <http://getcomposer.org >`_::
10996
97+ composer require docopt/docopt
11098
11199Alternatively, you can just drop ``docopt.php `` file into your project--it is
112100self-contained. `Get source on github <http://github.com/docopt/docopt.php >`_.
0 commit comments