Skip to content

Commit 87f2c4b

Browse files
authored
Merge pull request #15 from SimonFrings/v2.1.0
Prepare v2.1.0 release
2 parents ff9cdac + 3740ef1 commit 87f2c4b

File tree

4 files changed

+34
-11
lines changed

4 files changed

+34
-11
lines changed

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: clue
2+
custom: https://clue.engineering/support

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 2.1.0 (2020-12-08)
4+
5+
* Improve test suite and add `.gitattributes` to exclude dev files from exports.
6+
Add PHP 8 support, update to PHPUnit 9 and simplify test setup.
7+
(#12 by @clue and #13 and #14 by @SimonFrings)
8+
39
## 2.0.0 (2016-12-18)
410

511
* Feature / BC break: Support interpreting hex and octal escape sequences

README.md

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# clue/arguments
22

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)
44

55
The simple way to split your command line string into an array of command arguments in PHP.
66

@@ -16,6 +16,7 @@ But many other tools may need similar parsing during their runtime.
1616

1717
**Table of contents**
1818

19+
* [Support us](#support-us)
1920
* [Quickstart example](#quickstart-example)
2021
* [Usage](#usage)
2122
* [split()](#split)
@@ -25,6 +26,16 @@ But many other tools may need similar parsing during their runtime.
2526
* [License](#license)
2627
* [More](#more)
2728

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+
2839
### Quickstart example
2940

3041
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)
182193
function when the input line has unbalanced quotes (i.e. a quoted argument
183194
started without passing ending quotes).
184195

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).
186197

187198
The `getQuotes(): string` method can be used to get the quotes this argument
188199
started with:
@@ -222,13 +233,14 @@ assert($line[$pos] === $e->getQuotes());
222233

223234
## Install
224235

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)
227238

239+
This project follows [SemVer](https://semver.org/).
228240
This will install the latest supported version:
229241

230242
```bash
231-
$ composer require clue/arguments:^2.0
243+
$ composer require clue/arguments:^2.1
232244
```
233245

234246
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.
241253
## Tests
242254

243255
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):
245257

246258
```bash
247259
$ composer install
@@ -255,13 +267,16 @@ $ php vendor/bin/phpunit
255267

256268
## License
257269

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.
259274

260275
## More
261276

262277
* 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).
264279

265280
* 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
267282
to commands from STDIN.

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
"name": "clue/arguments",
33
"description": "The simple way to split your command line string into an array of command arguments in PHP.",
44
"keywords": ["arguments", "command", "command line", "split", "explode", "args", "argv", "parse"],
5-
"homepage": "https://github.com/clue/php-arguments",
5+
"homepage": "https://github.com/clue/arguments",
66
"license": "MIT",
77
"authors": [
88
{
99
"name": "Christian Lück",
10-
"email": "christian@lueck.tv"
10+
"email": "christian@clue.engineering"
1111
}
1212
],
1313
"require": {

0 commit comments

Comments
 (0)