Skip to content

Commit c0726fe

Browse files
author
Michael Petri
committed
fixed readme
1 parent 76904fa commit c0726fe

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,22 @@
44
[![Latest Stable Version](https://poser.pugx.org/michaelpetri/typed-input/v)](//packagist.org/packages/michaelpetri/typed-input)
55
[![License](https://poser.pugx.org/michaelpetri/typed-input/license)](//packagist.org/packages/michaelpetri/typed-input)
66

7-
## Installation:
8-
```
7+
## Installation
8+
9+
```shell
910
composer require michaelpetri/typed-input
1011
```
1112

12-
## Usage:
13+
## Usage
14+
1315
```php
1416
$typedInput = TypedInput::fromInput($input);
1517

1618
echo $typedInput->getOption('my-option')->asNonEmptyString();
1719
echo $typedInput->getArgument('my-argument')->asInteger();
1820
```
1921

20-
## Available methods:
22+
## Available methods
2123

2224
* `asBoolean`
2325
* `asBooleanOrNull`
@@ -32,4 +34,4 @@ echo $typedInput->getArgument('my-argument')->asInteger();
3234
* `asNonEmptyString`
3335
* `asNonEmptyStringOrNull`
3436
* `asNonEmptyStrings`
35-
* `asDateTimeImmutable`
37+
* `asDateTimeImmutable`

0 commit comments

Comments
 (0)