https://github.com/thisliu/mixin-sdk-php
https://github.com/thisliu/mixin-sdk-php
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/thisliu/mixin-sdk-php
- Owner: thisliu
- Created: 2022-08-27T02:52:18.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-28T16:14:13.000Z (almost 4 years ago)
- Last Synced: 2025-02-09T00:34:23.065Z (over 1 year ago)
- Language: PHP
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
mixin
🔥🔥🔥🔥火热开发中🔥🔥🔥🔥
## Installing
```shell
$ composer require thisliu/mixin -vvv
```
## 配置
```php
$config = [
xxx
];
```
### 返回值
所有的接口调用都会返回 [`Thisliu\Mixin\Http\Response`](https://github.com/thisliu/mixin-sdk-php/blob/main/src/Http/Response.php) 对象,改对象提供了以下便捷方法:
```php
array|null $response->toArray(); // 获取响应内容数组转换结果
object $response->toObject(); // 获取对象格式的返回值
bool $response->isXML(); // 检测返回内容是否为 XML
string $response->getContents(); // 获取原始返回内容
```
## 使用
```php
use Thisliu\Mixin\Mixin;
$app = new Mixin($config);
$response = $app->get('/me');
```
## License
MIT