Skip to content

Commit ab1e9db

Browse files
committed
Readme: Format table for packagist.org
1 parent 241454f commit ab1e9db

File tree

1 file changed

+6
-27
lines changed

1 file changed

+6
-27
lines changed

README.md

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -78,42 +78,21 @@ $ php-matrix --mode=minor-only ">=7.2 <8.4"
7878
}
7979
```
8080

81-
## Options
81+
### Options
8282

83-
### `--mode`
83+
#### `--mode`
8484

85-
<dl>
86-
<dt><code>minor-only</code> (default)</dt>
87-
<dd>Report <code>MAJOR.MINOR</code> versions only</dd>
88-
</dl>
85+
Available modes:
86+
- `minor-only` *(default)*: Report `MAJOR.MINOR` versions only
87+
- `full`: Report all satisfying versions in `MAJOR.MINOR.PATCH` format
8988

90-
<dl>
91-
<dt><code>full</code></dt>
92-
<dd>Report all satisfying versions in <code>MAJOR.MINOR.PATCH</code> format</dd>
93-
</dl>
94-
95-
### `--source`
89+
#### `--source`
9690

9791
Available sources:
9892
- `auto` *(default)*: Use `offline` in `minor-only` mode. Otherwise, fetch from [php.net](https://www.php.net/releases/index.php)
9993
- `php.net`: Fetch releases information from [php.net](https://www.php.net/releases/index.php)
10094
- `offline`: Use [hardcoded releases information](resources/all-versions.json)
10195

102-
<dl>
103-
<dt><code>auto</code> (default)</dt>
104-
<dd>Use <code>offline</code> in <code>minor-only</code> mode. Otherwise, fetch from <a href="https://www.php.net/releases/index.php">php.net</a></dd>
105-
</dl>
106-
107-
<dl>
108-
<dt><code>php.net</code></dt>
109-
<dd>Fetch releases information from <a href="https://www.php.net/releases/index.php">php.net</a></dd>
110-
</dl>
111-
112-
<dl>
113-
<dt><code>offline</code></dt>
114-
<dd>Use <a href="https://github.com/typisttech/php-matrix/blob/main/resources/all-versions.json">hardcoded releases</a> information</dd>
115-
</dl>
116-
11796
## Installation
11897

11998
### Composer Global

0 commit comments

Comments
 (0)