Skip to content

thisliu/mixin-sdk-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mixin

🔥🔥🔥🔥火热开发中🔥🔥🔥🔥

Installing

$ 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');

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages