reaway/think-response

think response

Maintainers

Package info

github.com/reaway/think-response

pkg:composer/reaway/think-response

Statistics

Installs: 12

Dependents: 2

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.2 2022-10-31 15:18 UTC

This package is auto-updated.

Last update: 2026-03-01 00:38:01 UTC


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();