Version: v0.6.0 - Beta.  We welcome contributors & feedback.  THanks!

Input.getAll

Input.getAll($mapOfFieldRules)

Description

Get all input params sent in a GET request (query string).

Each field will be validated per the given rule. (See Input Validation)

// url: /user?userId=12345&age=39

$data = Input.getAll({
    userId: 'id',
    age: 'i|min:1|max:130',
});
// {
//    userId: 1234,
//    age: 39,
// }

See Also