reaway/think-response

think response

Installs: 12

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/reaway/think-response

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

This package is auto-updated.

Last update: 2025-09-29 02:58:56 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();