Skip to content

Unofficial Aliyun OSS SDK for PHP (为PHP提供的非官方阿里云OSS SDK)

Notifications You must be signed in to change notification settings

huang-yi/aliyun-oss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aliyun OSS

This package provides an unofficial Aliyun OSS SDK for PHP.

Usage

<?php

require __DIR__ . '/vendor/autoload.php';

use HuangYi\AliyunOss\OssClient;

$bucketName = 'bucket';
$endpoint = 'oss-cn-hangzhou.aliyuncs.com';
$accessKeyId = 'access_key_id';
$accessKeySecret = 'access_key_secret';

$client = new OssClient($bucketName, $endpoint, $accessKeyId, $accessKeySecret);

// Service APIs
$client->service->getService();

// Bucket APIs
$client->bucket->getBucket();

// Object APIs
$client->object->putObject('new-object', 'contents');

About

Unofficial Aliyun OSS SDK for PHP (为PHP提供的非官方阿里云OSS SDK)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages