Skip to content

Commit

Permalink
Prepare v1.3.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
clue committed Aug 11, 2017
1 parent 5c0b862 commit 8caf2f5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# Changelog

## 1.3.0 (2017-08-11)

* Feature: Add support for custom filter callbacks
(#25 by @clue)

```php
$tokenizer = new Tokenizer();
$tokenizer->addFilter('ip', function ($value) {
return filter_var($ip, FILTER_VALIDATE_IP);
});
$tokenizer->addFilter('lower', function (&$value) {
$value = strtolower($value);
return true;
});

$router = new Router($tokenizer);
$router->add('add <name:lower>', function ($args) { });
$router->add('--search=<address:ip>', function ($args) { });
```

* Improve test suite by locking Travis distro so new future defaults will not break the build
(#24 by @clue)

## 1.2.2 (2017-06-29)

* Fix: Assume argv to be empty if not present (non-CLI SAPI mode)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ The recommended way to install this library is [through Composer](http://getcomp
This will install the latest supported version:

```bash
$ composer require clue/commander:^1.2.2
$ composer require clue/commander:^1.3
```

See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.
Expand Down

0 comments on commit 8caf2f5

Please sign in to comment.