Skip to content

lokielse/php-aliyun-oss

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aliyun OSS SDK for PHP

Latest Version on Packagist Software License Total Downloads

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.

About

The PHP SDK for Aliyun OSS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%