request-parser icon indicating copy to clipboard operation
request-parser copied to clipboard

Small PHP Library for type-safe input handling

Results 10 request-parser issues
Sort by recently updated
recently updated
newest added

It would be great if this library could also support accessing the $_COOKIE variable. For me it would make sense as the cookies basically belong to the request. Had a...

You use filter_vars in the url parser of yours, but it doesn't accept internationalized domain names (maybe different with php7). Source: http://php.net/manual/en/filter.filters.validate.php Just wanted to point that out, maybe put...

"on" is default value for checkboxes in html in many browsers, therefore it would be great if "on" would be treated as true as well in the BooleanParser.

E.g. when dealing with a custom value object `A` it might make sense to create your own `->param(..)->a()->required()`. We should add documentation on how to do that and maybe change...

enhancement

Issue https://github.com/mpscholten/request-parser/issues/37

This is a follow up on issue https://github.com/mpscholten/request-parser/issues/36. The idea is to write a script that automates the creation of custom parsers, custom exceptions and ideally other components in the...

enhancement

Currently when having something along: ``` php $a = $this->param(...)->string()->defaultsTo(null); ``` The type of `$a` as shown in an IDE is `string` due to the type hints on the `defaultsTo`...

bug