1
1
# clue/arguments
2
2
3
- [ ![ CI status] ( https://github.com/clue/php- arguments/workflows/CI/badge.svg )] ( https://github.com/clue/php- arguments/actions )
3
+ [ ![ CI status] ( https://github.com/clue/arguments/workflows/CI/badge.svg )] ( https://github.com/clue/arguments/actions )
4
4
5
5
The simple way to split your command line string into an array of command arguments in PHP.
6
6
@@ -16,6 +16,7 @@ But many other tools may need similar parsing during their runtime.
16
16
17
17
** Table of contents**
18
18
19
+ * [ Support us] ( #support-us )
19
20
* [ Quickstart example] ( #quickstart-example )
20
21
* [ Usage] ( #usage )
21
22
* [ split()] ( #split )
@@ -25,6 +26,16 @@ But many other tools may need similar parsing during their runtime.
25
26
* [ License] ( #license )
26
27
* [ More] ( #more )
27
28
29
+ ## Support us
30
+
31
+ We invest a lot of time developing, maintaining and updating our awesome
32
+ open-source projects. You can help us sustain this high-quality of our work by
33
+ [ becoming a sponsor on GitHub] ( https://github.com/sponsors/clue ) . Sponsors get
34
+ numerous benefits in return, see our [ sponsoring page] ( https://github.com/sponsors/clue )
35
+ for details.
36
+
37
+ Let's take these projects to the next level together! 🚀
38
+
28
39
### Quickstart example
29
40
30
41
The following example code demonstrates how this library can be used to build
@@ -182,7 +193,7 @@ The `UnclosedQuotesException` will be raised by the [`split()`](#split)
182
193
function when the input line has unbalanced quotes (i.e. a quoted argument
183
194
started without passing ending quotes).
184
195
185
- This class extends PHP's [ ` InvalidArgumentException ` ] ( http ://php.net/manual/en/class.invalidargumentexception.php) .
196
+ This class extends PHP's [ ` InvalidArgumentException ` ] ( https ://www. php.net/manual/en/class.invalidargumentexception.php) .
186
197
187
198
The ` getQuotes(): string ` method can be used to get the quotes this argument
188
199
started with:
@@ -222,13 +233,14 @@ assert($line[$pos] === $e->getQuotes());
222
233
223
234
## Install
224
235
225
- The recommended way to install this library is [ through Composer] ( http ://getcomposer.org) .
226
- [ New to Composer?] ( http ://getcomposer.org/doc/00-intro.md)
236
+ The recommended way to install this library is [ through Composer] ( https ://getcomposer.org/ ) .
237
+ [ New to Composer?] ( https ://getcomposer.org/doc/00-intro.md)
227
238
239
+ This project follows [ SemVer] ( https://semver.org/ ) .
228
240
This will install the latest supported version:
229
241
230
242
``` bash
231
- $ composer require clue/arguments:^2.0
243
+ $ composer require clue/arguments:^2.1
232
244
```
233
245
234
246
See also the [ CHANGELOG] ( CHANGELOG.md ) for details about version upgrades.
@@ -241,7 +253,7 @@ It's *highly recommended to use PHP 7+* for this project.
241
253
## Tests
242
254
243
255
To run the test suite, you first need to clone this repo and then install all
244
- dependencies [ through Composer] ( http ://getcomposer.org) :
256
+ dependencies [ through Composer] ( https ://getcomposer.org) :
245
257
246
258
``` bash
247
259
$ composer install
@@ -255,13 +267,16 @@ $ php vendor/bin/phpunit
255
267
256
268
## License
257
269
258
- MIT
270
+ This project is released under the permissive [ MIT license] ( LICENSE ) .
271
+
272
+ > Did you know that I offer custom development services and issuing invoices for
273
+ sponsorships of releases and for contributions? Contact me (@clue ) for details.
259
274
260
275
## More
261
276
262
277
* If you want to register/route available commands and their arguments, you may
263
- want to look into using [ clue/commander] ( https://github.com/clue/php- commander ) .
278
+ want to look into using [ clue/commander] ( https://github.com/clue/commander ) .
264
279
265
280
* If you want to build an interactive CLI tool, you may want to look into using
266
- [ clue/stdio-react ] ( https://github.com/clue/php -stdio-react ) in order to react
281
+ [ clue/reactphp-stdio ] ( https://github.com/clue/reactphp -stdio ) in order to react
267
282
to commands from STDIN.
0 commit comments