imj/yaf-request

Yaf request class encapsulation

v1.0.2 2016-06-21 11:10 UTC

This package is not auto-updated.

Last update: 2024-04-25 00:07:36 UTC


README

Installation

imj/yaf-request dependent on imj/filter

composer require imj/yaf-request

Basic Usage

use Imj\Filter;
use Imj\YafRequest;

$request = new YafRequest();
$foo = $request->get('foo', Filter::STRING_TYPE);
$bar = $request->post('bar', Filter::INT_TYPE, ['min'=>1]);
$baz = $request->request('baz', Filter::STRING_TYPE);
$fbb = $request->cookie('fbb', Filter::STRING_TYPE);

License

licensed under the MIT License - see the LICENSE file for details