mayunfeng / insideapi
内部SDK 仅供内部使用
3.15.0
2021-10-11 07:21 UTC
Requires
- php: >=7.0.0
- ext-curl: *
- ext-json: *
- mayunfeng/supports: ^1.0
- pimple/pimple: ~3.0
- psr/simple-cache: ^1.0
- symfony/cache: ^5.0
- symfony/http-foundation: *
Requires (Dev)
- mockery/mockery: ^0.9.9
- phpunit/phpunit: ~4.0
- dev-master
- 3.15.0
- 3.14.5
- 3.14.4
- 3.14.3
- 3.14.2
- 3.14.1
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.5
- 3.11.4
- 3.11.3
- 3.11.2
- 3.11.1
- 3.11.0
- 3.10.6
- 3.10.5
- 3.10.4
- 3.10.3
- 3.10.2
- 3.10.1
- 3.10.0
- 3.9.3
- 3.9.2
- 3.9.1
- 3.9.0
- 3.8.1
- 3.8.0
- 3.7.2
- 3.7.1
- 3.7.0
- 3.6.0
- 3.5.1
- 3.5.0
- 3.4.1
- 3.4.0
- 3.3.0
- 3.2.4
- 3.2.3
- 3.2.2
- 3.2.1
- 3.2.0
- 3.1.1
- 3.1.0
- 3.0.x-dev
- 3.0.1
- 3.0.0
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.1
- 2.1.0
- 2.0.0
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.9
- 1.6.8
- 1.6.7
- 1.6.6
- 1.6.5
- 1.6.4
- 1.6.3
- 1.6.2
- 1.6.1
This package is auto-updated.
Last update: 2025-03-11 14:06:47 UTC
README
仅作内部项目使用,非内部人员请忽视
安装
composer require mayunfeng/insideapi
使用
$options = [
'debug' => true,
'token' => 'token',
'access_key' => 'access_key',
'cache' => 'Doctrine\Common\Cache\RedisCache', // RedisCache 实例了 `Doctrine\Common\Cache\Cache` 接口
'log' => [
'level' => 'debug',
'file' => '/tmp/insideapi.log',
],
/**
* Guzzle 全局设置
*
* 更多请参考: http://docs.guzzlephp.org/en/latest/request-options.html
*/
'guzzle' => [
'timeout' => 3.0, // 超时时间(秒)
//'verify' => false, // 关掉 SSL 认证(强烈不建议!!!)
],
// ...
];
$app = new Application($options);
$result = $app->manage->addUser();
if($result['Success']){
// do something
} else {
// do something
}