File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 4
4
[ ![ Latest Stable Version] ( https://poser.pugx.org/michaelpetri/typed-input/v )] ( //packagist.org/packages/michaelpetri/typed-input )
5
5
[ ![ License] ( https://poser.pugx.org/michaelpetri/typed-input/license )] ( //packagist.org/packages/michaelpetri/typed-input )
6
6
7
- ## Installation:
8
- ```
7
+ ## Installation
8
+
9
+ ``` shell
9
10
composer require michaelpetri/typed-input
10
11
```
11
12
12
- ## Usage:
13
+ ## Usage
14
+
13
15
``` php
14
16
$typedInput = TypedInput::fromInput($input);
15
17
16
18
echo $typedInput->getOption('my-option')->asNonEmptyString();
17
19
echo $typedInput->getArgument('my-argument')->asInteger();
18
20
```
19
21
20
- ## Available methods:
22
+ ## Available methods
21
23
22
24
* ` asBoolean `
23
25
* ` asBooleanOrNull `
@@ -32,4 +34,4 @@ echo $typedInput->getArgument('my-argument')->asInteger();
32
34
* ` asNonEmptyString `
33
35
* ` asNonEmptyStringOrNull `
34
36
* ` asNonEmptyStrings `
35
- * ` asDateTimeImmutable `
37
+ * ` asDateTimeImmutable `
You can’t perform that action at this time.
0 commit comments