reaway / think-response
think response
v1.0.2
2022-10-31 15:18 UTC
Requires
- php: >=7.2.0
- ext-fileinfo: *
- ext-json: *
- reaway/think-container: ^1.0
- reaway/think-cookie: ^1.0
- reaway/think-session: ^1.0
README
安装
composer require reaway/think-response
用法
require __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php'; $response = html('html'); //$response = json(['key' => 'value']); //$response = jsonp(['key' => 'value']); //$response = redirect('http://www.baidu.com'); //$response = xml(['key' => 'value']); $response->send();