xujif / ucloud-ufile-sdk
ucloud ufilesdk base on rest
Installs: 6 080
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 4
Open Issues: 0
Requires
- php: >=5.3.0
- guzzlehttp/guzzle: ~6.0
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2024-10-27 19:07:38 UTC
README
#ucloud ufile sdk
base on https://docs.ucloud.cn/api-docs/ufile-api/
#usage
$sdk = new UfileSdk('storage','api_pub_key','api_pub_secret');
$sdk->put('text.txt',"content");
$sdk->putFile('text.txt',"/path/to/yourfile");
$contents = $sdk->get('dd');
$exists = $sdk->exists('dd222');
$size = $sdk->delete('dd');
``
或者直接查看tests/sdkTest.php