🔥🔥🔥🔥火热开发中🔥🔥🔥🔥
$ composer require thisliu/mixin -vvv$config = [
xxx
];所有的接口调用都会返回 Thisliu\Mixin\Http\Response 对象,改对象提供了以下便捷方法:
array|null $response->toArray(); // 获取响应内容数组转换结果
object $response->toObject(); // 获取对象格式的返回值
bool $response->isXML(); // 检测返回内容是否为 XML
string $response->getContents(); // 获取原始返回内容use Thisliu\Mixin\Mixin;
$app = new Mixin($config);
$response = $app->get('/me');MIT