xiaomi / galaxy-sds-sdk
Xiaomi Structured Store Service PHP SDK
Installs: 4 865
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 24
Forks: 9
Open Issues: 0
Requires
- php: >=5.3
- symfony/class-loader: 2.5.5
This package is not auto-updated.
Last update: 2024-11-18 13:35:05 UTC
README
- 安装第三方依赖
./composer.phar install
-
php环境配置: 需要安装Client URL Library(php curl)扩展, 否则会报PHP Fatal error: Call to undefined function SDS\Client\curl_init()。
-
客户端metrics默认为关闭,当开启时, 需要安装php pthreads扩展。
-
运行示例代码,测试是否正常(需要修改示例代码中的AppID/AppSecret)
php examples/Basic.php
SDS PHP SDK User Guide
- Install dependencies
./composer.phar install
- PHP Extensions:
- php curl extension (required)
- php pthreads extension (optional,required only when client metrics turned on)
- Run examples (you need to change the AppID/AppSecret in the example code)
php examples/Basic.php