lokielse / aliyun-oss
Aliyun OSS SDK for PHP
Installs: 158
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 348
Open Issues: 0
Requires
- php: >=5.3
Requires (Dev)
- phpunit/phpunit: ~4.0
- squizlabs/php_codesniffer: ~2.3
README
Aliyun OSS SDK for PHP
Installation
$ composer require lokielse/aliyun-oss
Usage
$accessKeyId = "<your_access_key_id>"; ; $accessKeySecret = "<your_access_key_secret>"; $endpoint = "http://oss-cn-hangzhou.aliyuncs.com"; $client = new OSSClient($accessKeyId, $accessKeySecret, $endpoint); $bucket = "<your_bucket_name>"; $object = "doc/dest_demo_01.txt"; $content = "Hello, OSS!"; $client->putObject($bucket, $object, $content);
Testing
composer test
License
The MIT License (MIT). Please see License File for more information.